Class CockpitValidationDescriptor


  • public class CockpitValidationDescriptor
    extends java.lang.Object
    The Class CockpitValidationDescriptor.
    • Constructor Detail

      • CockpitValidationDescriptor

        public CockpitValidationDescriptor​(PropertyDescriptor propertyDescriptor,
                                           int cockpitMessageLevel,
                                           java.lang.String validationMessage,
                                           AbstractConstraintModel constraint)
    • Method Detail

      • getCockpitMessageLevel

        public int getCockpitMessageLevel()
        Gets the cockpit message level.
        Returns:
        the cockpit message level
      • getConstraintPk

        public java.lang.String getConstraintPk()
        Gets the constraint pk.
        Returns:
        the constraint pk
      • getPropertyDescriptor

        public PropertyDescriptor getPropertyDescriptor()
        Gets the property descriptor.
        Returns:
        the propertyDescriptor
      • getValidationMessage

        public java.lang.String getValidationMessage()
        Gets the validation message.
        Returns:
        the validationMessage
      • isAttributeConstraint

        public boolean isAttributeConstraint()
        Checks if is attribute constraint.
        Returns:
        true, if is attribute constraint
      • isFramevorkValidation

        public boolean isFramevorkValidation()
        Checks if is framevork validation.
        Returns:
        true, if is framevork validation
      • isTypeConstraint

        public boolean isTypeConstraint()
        Checks if is type constraint.
        Returns:
        true, if is type constraint
      • setCockpitMessageLevel

        public void setCockpitMessageLevel​(int cockpitMessageLevel)
        Sets the cockpit message level.
        Parameters:
        cockpitMessageLevel - the new cockpit message level
      • setConstraint

        public void setConstraint​(AbstractConstraintModel constraint)
        Sets the constraint.
        Parameters:
        constraint - the new constraint
      • setPropertyDescriptor

        public void setPropertyDescriptor​(PropertyDescriptor propertyDescriptor)
        Sets the property descriptor.
        Parameters:
        propertyDescriptor - the propertyDescriptor to set
      • setValidationMessage

        public void setValidationMessage​(java.lang.String validationMessage)
        Sets the validation message.
        Parameters:
        validationMessage - the validationMessage to set
      • toString

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