Class ValidationMessage

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ValidationMessage
    extends java.lang.Object
    implements java.io.Serializable
    A ValidationMessage may be returned for certain operations, related to specific property of a ConfigurationItem.
    See Also:
    Serialized Form
    • Constructor Detail

      • ValidationMessage

        public ValidationMessage​(java.lang.String ciId,
                                 java.lang.String propertyName,
                                 java.lang.String message,
                                 java.lang.String level)
      • ValidationMessage

        public ValidationMessage​(java.lang.String ciId,
                                 java.lang.String propertyName,
                                 java.lang.String message,
                                 ValidationMessage.Level level)
      • ValidationMessage

        public ValidationMessage​(java.lang.String ciId,
                                 java.lang.String propertyName,
                                 java.lang.String message)
    • Method Detail

      • error

        public static ValidationMessage error​(java.lang.String ciId,
                                              java.lang.String propertyName,
                                              java.lang.String message)
      • warn

        public static ValidationMessage warn​(java.lang.String ciId,
                                             java.lang.String propertyName,
                                             java.lang.String message)
      • info

        public static ValidationMessage info​(java.lang.String ciId,
                                             java.lang.String propertyName,
                                             java.lang.String message)
      • getCiId

        public java.lang.String getCiId()
        Returns:
        The id of the ConfigurationItem.
      • getPropertyName

        public java.lang.String getPropertyName()
        Returns:
        The name of the property.
      • getMessage

        public java.lang.String getMessage()
        Returns:
        The validation message.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object