public class ReferenceValidator
extends oracle.fmwplatform.util.validation.validators.BaseValidator
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CREDENTIALS_PROPERTY_NAME  | 
| Constructor and Description | 
|---|
ReferenceValidator(oracle.fmwplatform.util.validation.Validate validate)
Creates an instance of the ReferenceValidator 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)  | 
oracle.fmwplatform.util.validation.ValidationMessage | 
validateReference(Object element, Object fieldValue, String fieldName, boolean allowNull, ValidateReference.ReferenceType referenceType, String pattern, int min, int max)
Validates that a reference meets the naming requirements. 
 | 
List<oracle.fmwplatform.util.validation.ValidationMessage> | 
validateReferenceCollection(Collection<Object> fieldCollection, Object element, String fieldName, boolean allowNull, ValidateReference.ReferenceType referenceType, String pattern, int min, int max)
Validates that the collection of references meets the naming requirements. 
 | 
public static final String CREDENTIALS_PROPERTY_NAME
public ReferenceValidator(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.BaseValidatorpublic oracle.fmwplatform.util.validation.ValidationMessage validate(Object element, Field field, Annotation validationAnnotation) throws IllegalArgumentException, IllegalAccessException
public List<oracle.fmwplatform.util.validation.ValidationMessage> validateCollection(Collection<Object> fieldCollection, Object element, Field field, Annotation validationAnnotation) throws IllegalArgumentException, IllegalAccessException
public List<oracle.fmwplatform.util.validation.ValidationMessage> validateReferenceCollection(Collection<Object> fieldCollection, Object element, String fieldName, boolean allowNull, ValidateReference.ReferenceType referenceType, String pattern, int min, int max)
fieldCollection - a collection of values within a field that are to be validatedelement - the element containing the field to be validatedfieldName - the name of the field containing the collectionallowNull - whether a null is allowed for the valuereferenceType - the Class type of the object that the reference refers topattern - regular expression that is to be used to determine the validity of the field. Predefined patterns are provided in this EnvSpecValidationExpressions handle common patterns.min - the minimum length of the text defaulting to 0.max - the maximum length of the text with -1 meaning that there is no maximumEnvSpecValidationExpressionspublic oracle.fmwplatform.util.validation.ValidationMessage validateReference(Object element, Object fieldValue, String fieldName, boolean allowNull, ValidateReference.ReferenceType referenceType, String pattern, int min, int max)
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 valuereferenceType - the Class type of the object that the reference refers toopattern - regular expression that is to be used to determine the validity of the field. Predefined patterns are provided in this class to handle common patterns.ed to the text valuemin - the minimum length of the text defaulting to 0.max - the maximum length of the text with -1 meaning that there is no maximum