T - the class of object in the contextpublic final class ValidationContext<T extends DBObject>
extends java.lang.Object
| Constructor and Description | 
|---|
ValidationContext(T originalObject,
                 T updatedObject,
                 ValidationLevel level,
                 java.lang.String... props)
Creates a new ValidationContext to drive a validate operation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ValidationLevel | 
getLevel()
Gets the validation level to validate. 
 | 
T | 
getOriginalObject()
Gets the original object for the validation. 
 | 
java.lang.String[] | 
getProperties()
Gets the specific properties to validate. 
 | 
T | 
getUpdatedObject()
Gets the updated object for the validation. 
 | 
public ValidationContext(T originalObject, T updatedObject, ValidationLevel level, java.lang.String... props)
originalObject - the original object. If null updatedObject will be considered a new object, and any name validation
 will inculde a unique name check.updatedObject - the object to validate. If originalObject
 is not null this should be a temporary copy of originalObject
 (to validate an update), or the same instance (to validate an existing
 object in the provider).level - the validation level to validate atprops - the specific properties to validate, or null to validate
 all properties.java.lang.IllegalArgumentException - if updatedObject or level are null.public T getOriginalObject()
public T getUpdatedObject()
public java.lang.String[] getProperties()
public ValidationLevel getLevel()