Class AbstractAttributeContentValidator<T>
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.attributevalidators.AbstractAttributeContentValidator<T>
- Type Parameters:
T- type of the object being validated
- All Implemented Interfaces:
AttributeContentValidator<T>
- Direct Known Subclasses:
DateFormatAttributeContentValidator,DecimalAttributeContentValidator,LanguageCheckAttributeContentValidator,MediaAttributeContentValidator,MediaContainerAttributeContentValidator,NullCheckAttributeContentValidator,NumberAttributeContentValidator,UniqueIdentifierAttributeContentValidator
public abstract class AbstractAttributeContentValidator<T>
extends Object
implements AttributeContentValidator<T>
Abstract implementation of the
AttributeContentValidator that holds a reference to ValidationErrorsProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddValidationError(ValidationError validationError) Adds validation error to the current validation context.protected Map<String,AttributeConstraintModel> getConstraintMap(AttributeDescriptorModel attribute, Predicate<AttributeConstraintModel> filter) Returns the Constraint Map for this Attribute filtered by the given filter.protected ValidationErrorsProvidervoidsetValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cmsfacades.cmsitems.AttributeContentValidator
validate
-
Constructor Details
-
AbstractAttributeContentValidator
public AbstractAttributeContentValidator()
-
-
Method Details
-
getValidationErrorsProvider
-
setValidationErrorsProvider
-
getConstraintMap
protected Map<String,AttributeConstraintModel> getConstraintMap(AttributeDescriptorModel attribute, Predicate<AttributeConstraintModel> filter) Returns the Constraint Map for this Attribute filtered by the given filter.- Parameters:
attribute- the attribute descriptor in questionfilter- the filter to accept theAttributeConstraintModel- Returns:
- Constraint Map
-
addValidationError
Adds validation error to the current validation context.- Parameters:
validationError- the validation to be added.
-