public class DefaultValidatorWrapper extends Object implements ValidatorWrapper
A default implementation of the ValidatorWrapper interface.
An instance of this class is constructed with a Validator and a
TransformerContext. A validation operation is implemented by
delegating to the Validator passing in the TransformerContext
.
| Constructor and Description |
|---|
DefaultValidatorWrapper(Validator v,
TransformerContext ctx)
Creates a new instance of
DefaultValidatorWrapper and initializes
it. |
| Modifier and Type | Method and Description |
|---|---|
TransformerContext |
getTransformerContext()
Returns the
TransformerContext to use. |
Validator |
getValidator()
Returns the wrapped validator.
|
ValidationResult |
isValid(Object o)
Tests whether the specified object is valid.
|
public DefaultValidatorWrapper(Validator v, TransformerContext ctx)
DefaultValidatorWrapper and initializes
it.v - the wrapped validator (must not be null)ctx - the transformer context to use (must not be null)IllegalArgumentException - if a required parameter is missingpublic Validator getValidator()
public TransformerContext getTransformerContext()
TransformerContext to use.public ValidationResult isValid(Object o)
isValid in interface ValidatorWrappero - the object to testCopyright © 2016 The JGUIraffe Team. All rights reserved.