T - type of the object being validatedpublic abstract class AbstractAttributeContentValidator<T> extends java.lang.Object implements AttributeContentValidator<T>
AttributeContentValidator that holds a reference to ValidationErrorsProvider.| Constructor and Description |
|---|
AbstractAttributeContentValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValidationError(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 ValidationErrorsProvider |
getValidationErrorsProvider() |
void |
setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected ValidationErrorsProvider getValidationErrorsProvider()
public void setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)
protected java.util.Map<java.lang.String,AttributeConstraintModel> getConstraintMap(AttributeDescriptorModel attribute, java.util.function.Predicate<AttributeConstraintModel> filter)
attribute - the attribute descriptor in questionfilter - the filter to accept the AttributeConstraintModelprotected void addValidationError(ValidationError validationError)
validationError - the validation to be added.Copyright © 2018 SAP SE. All Rights Reserved.