Class CockpitValidationDescriptor
java.lang.Object
de.hybris.platform.cockpit.services.validation.pojos.CockpitValidationDescriptor
The Class CockpitValidationDescriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionCockpitValidationDescriptor(PropertyDescriptor propertyDescriptor, int cockpitMessageLevel, String validationMessage, AbstractConstraintModel constraint) -
Method Summary
Modifier and TypeMethodDescriptionintGets the cockpit message level.Gets the constraint PK.Gets the constraint pk.Gets the property descriptor.Gets the validation message.booleanChecks if is attribute constraint.booleanChecks if is framevork validation.booleanChecks if is type constraint.voidsetCockpitMessageLevel(int cockpitMessageLevel) Sets the cockpit message level.voidsetConstraint(AbstractConstraintModel constraint) Sets the constraint.voidsetPropertyDescriptor(PropertyDescriptor propertyDescriptor) Sets the property descriptor.voidsetValidationMessage(String validationMessage) Sets the validation message.toString()
-
Constructor Details
-
CockpitValidationDescriptor
public CockpitValidationDescriptor(PropertyDescriptor propertyDescriptor, int cockpitMessageLevel, String validationMessage, AbstractConstraintModel constraint)
-
-
Method Details
-
getCockpitMessageLevel
public int getCockpitMessageLevel()Gets the cockpit message level.- Returns:
- the cockpit message level
-
getConstraint
Gets the constraint PK.- Returns:
- the constraintPk
-
getConstraintPk
Gets the constraint pk.- Returns:
- the constraint pk
-
getPropertyDescriptor
Gets the property descriptor.- Returns:
- the propertyDescriptor
-
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
Sets the constraint.- Parameters:
constraint- the new constraint
-
setPropertyDescriptor
Sets the property descriptor.- Parameters:
propertyDescriptor- the propertyDescriptor to set
-
setValidationMessage
Sets the validation message.- Parameters:
validationMessage- the validationMessage to set
-
toString
-