public class BundleTemplateNonLeafValidator extends BasicBundleTemplateValidator<BundleTemplateNonLeaf>
BundleTemplateModel.getRequiredBundleTemplates()
does not belong to the parent package of the model.MESSAGE_PARAMETER_PATTERN| Constructor and Description |
|---|
BundleTemplateNonLeafValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isNonLeaf(BundleTemplateModel item)
Checks if item is non-leaf.
|
protected boolean |
isRelationValid(java.util.Collection<BundleTemplateModel> collection,
ConstraintValidatorContext context,
java.lang.String fieldName)
Checks if relations contain non-leaf nodes, and for each non-leaf node add error message.
|
boolean |
isValid(BundleTemplateModel value,
ConstraintValidatorContext context) |
initializebuildErrorMessage, getCurrentLocale, getI18nService, getLocalizedString, getResourceBundleProviderpublic boolean isValid(BundleTemplateModel value, ConstraintValidatorContext context)
protected boolean isRelationValid(java.util.Collection<BundleTemplateModel> collection, ConstraintValidatorContext context, java.lang.String fieldName)
collection - the relationscontext - the ConstraintValidatorContextfieldName - the name of relation.protected boolean isNonLeaf(BundleTemplateModel item)
item - - the BundleTemplateModel to checkCopyright © 2018 SAP SE. All Rights Reserved.