Class NumberAttributeContentValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.attributevalidators.AbstractAttributeContentValidator<java.lang.Object>
-
- de.hybris.platform.cmsfacades.cmsitems.attributevalidators.NumberAttributeContentValidator
-
- All Implemented Interfaces:
AttributeContentValidator<java.lang.Object>
- Direct Known Subclasses:
DoubleAttributeContentValidator,FloatAttributeContentValidator,IntegerAttributeContentValidator,LongAttributeContentValidator
public class NumberAttributeContentValidator extends AbstractAttributeContentValidator<java.lang.Object>
Integer validator adds validation errors when the value does not respects the attribute's constraints.
-
-
Constructor Summary
Constructors Constructor Description NumberAttributeContentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.String>getConstraints()java.util.List<ValidationError>validate(java.lang.Object value, AttributeDescriptorModel attribute)Performs validation on the given arguments.-
Methods inherited from class de.hybris.platform.cmsfacades.cmsitems.attributevalidators.AbstractAttributeContentValidator
addValidationError, getConstraintMap, getValidationErrorsProvider, setValidationErrorsProvider
-
-
-
-
Method Detail
-
validate
public java.util.List<ValidationError> validate(java.lang.Object value, AttributeDescriptorModel attribute)
Description copied from interface:AttributeContentValidatorPerforms validation on the given arguments.- Parameters:
value- the value objectattribute- the attribute descriptor of the givenvalue.
-
getConstraints
protected java.util.Set<java.lang.String> getConstraints()
-
-