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 java.lang.Object implements AttributeContentValidator<T>
Abstract implementation of theAttributeContentValidatorthat holds a reference toValidationErrorsProvider.
-
-
Constructor Summary
Constructors Constructor Description AbstractAttributeContentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddValidationError(ValidationError validationError)Adds validation error to the current validation context.protected java.util.Map<java.lang.String,AttributeConstraintModel>getConstraintMap(AttributeDescriptorModel attribute, java.util.function.Predicate<AttributeConstraintModel> filter)Returns the Constraint Map for this Attribute filtered by the given filter.protected ValidationErrorsProvidergetValidationErrorsProvider()voidsetValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cmsfacades.cmsitems.AttributeContentValidator
validate
-
-
-
-
Method Detail
-
getValidationErrorsProvider
protected ValidationErrorsProvider getValidationErrorsProvider()
-
setValidationErrorsProvider
public void setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)
-
getConstraintMap
protected java.util.Map<java.lang.String,AttributeConstraintModel> getConstraintMap(AttributeDescriptorModel attribute, java.util.function.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
protected void addValidationError(ValidationError validationError)
Adds validation error to the current validation context.- Parameters:
validationError- the validation to be added.
-
-