public class ResourceValidator
extends oracle.fmwplatform.util.validation.validators.GraphValidator
| Constructor and Description |
|---|
ResourceValidator(oracle.fmwplatform.util.validation.Validate validate)
Creates an instance of the ResourceValidator associated to a particular Validate which is currently handling the validation processing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
oracle.fmwplatform.util.validation.ValidationMessage |
validate(Object element, Field field, Annotation validationAnnotation) |
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validateCollection(Collection<Object> fieldCollection, Object element, Field field, Annotation validationAnnotation) |
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validateResourceCollection(Object element, Collection<Object> fieldCollection, String fieldName, boolean allowNull)
Validates that a ResourceReference can be loaded based on the current search path.
|
oracle.fmwplatform.util.validation.ValidationMessage |
validateResourceReference(Object element, Object fieldValue, String fieldName, boolean allowNull)
Validates that a ResourceReference can be loaded based on the current search path.
|
validateGraph, validateGraphCollectionpublic ResourceValidator(oracle.fmwplatform.util.validation.Validate validate)
validate - the current Validate instance that is processing the validationfor the detailed optionspublic void init()
init in class oracle.fmwplatform.util.validation.validators.GraphValidatorpublic oracle.fmwplatform.util.validation.ValidationMessage validate(Object element, Field field, Annotation validationAnnotation) throws IllegalArgumentException, IllegalAccessException
validate in interface oracle.fmwplatform.util.validation.Validatorvalidate in class oracle.fmwplatform.util.validation.validators.GraphValidatorIllegalArgumentExceptionIllegalAccessExceptionpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validateCollection(Collection<Object> fieldCollection, Object element, Field field, Annotation validationAnnotation) throws IllegalArgumentException, IllegalAccessException
validateCollection in interface oracle.fmwplatform.util.validation.ValidatorvalidateCollection in class oracle.fmwplatform.util.validation.validators.GraphValidatorIllegalArgumentExceptionIllegalAccessExceptionpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validateResourceCollection(Object element, Collection<Object> fieldCollection, String fieldName, boolean allowNull)
fieldCollection - a collection of values within a field that are to be validatedelement - the element containing the field to be validatefieldName - the name of the field containing the collectionallowNull - whether a null is allowed for the valuepublic oracle.fmwplatform.util.validation.ValidationMessage validateResourceReference(Object element, Object fieldValue, String fieldName, boolean allowNull)
element - the element containing the field to be validatefieldValue - the value from the fieldfieldName - the name of the field containing the collectionallowNull - whether a null is allowed for the value