Class CockpitValidationDescriptor
- java.lang.Object
-
- de.hybris.platform.cockpit.services.validation.pojos.CockpitValidationDescriptor
-
public class CockpitValidationDescriptor extends java.lang.ObjectThe Class CockpitValidationDescriptor.
-
-
Constructor Summary
Constructors Constructor Description CockpitValidationDescriptor(PropertyDescriptor propertyDescriptor, int cockpitMessageLevel, java.lang.String validationMessage, AbstractConstraintModel constraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCockpitMessageLevel()Gets the cockpit message level.AbstractConstraintModelgetConstraint()Gets the constraint PK.java.lang.StringgetConstraintPk()Gets the constraint pk.PropertyDescriptorgetPropertyDescriptor()Gets the property descriptor.java.lang.StringgetValidationMessage()Gets the validation message.booleanisAttributeConstraint()Checks if is attribute constraint.booleanisFramevorkValidation()Checks if is framevork validation.booleanisTypeConstraint()Checks 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(java.lang.String validationMessage)Sets the validation message.java.lang.StringtoString()
-
-
-
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
-
getConstraint
public AbstractConstraintModel getConstraint()
Gets the constraint PK.- Returns:
- the constraintPk
-
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:
toStringin classjava.lang.Object
-
-