public class SchemaVersionValidator
extends oracle.fmwplatform.util.validation.validators.BaseValidator
| Constructor and Description |
|---|
SchemaVersionValidator(oracle.fmwplatform.util.validation.Validate validate)
Creates an instance of the SchemaVersionValidator 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 |
validateSchemaVersion(Object element, Object fieldValue, String fieldName, String version, boolean allowNull)
Validates that the Schema Version in the model matches the Schema Version of that is expected.
|
public SchemaVersionValidator(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 oracle.fmwplatform.util.validation.ValidationMessage validateSchemaVersion(Object element, Object fieldValue, String fieldName, String version, boolean allowNull)
element - the element containing the field to be validatefieldValue - the value from the fieldfieldName - the name of the field containing the collectionversion - the expected schema versionallowNull - whether a null is allowed for the value