T - type of the object being validatedpublic class NullCheckAttributeContentValidator<T> extends AbstractAttributeContentValidator<T>
NotNullConstraintModel and NotEmptyConstraintModel constraints.| Constructor and Description |
|---|
NullCheckAttributeContentValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isEmpty(T value)
Verifies if an object is empty.
|
java.util.List<ValidationError> |
validate(T value,
AttributeDescriptorModel attribute)
Performs validation on the given arguments.
|
addValidationError, getConstraintMap, getValidationErrorsProvider, setValidationErrorsProviderpublic java.util.List<ValidationError> validate(T value, AttributeDescriptorModel attribute)
AttributeContentValidatorvalue - the value objectattribute - the attribute descriptor of the given value.protected boolean isEmpty(T value)
value - if the value is emptytrue if the value is empty; false otherwise.Copyright © 2018 SAP SE. All Rights Reserved.