T
- the type which can be unwrapped by a specific implementation. The value for this type parameter must
either resolve to a non-parameterized type (i.e. because the type is not using generics or because the raw
type is used instead of the generic version) or all of its own type parameters must be unbounded
wildcard types (i.e. <?>).public abstract class ValidatedValueUnwrapper<T> extends Object
Unwrapper implementations can be registered when bootstrapping a validator or validator factory. Note that when more than one unwrapper implementation is suitable to unwrap a given element, it is not specified which of the implementations is chosen.
Implementations must be thread-safe.
Constructor and Description |
---|
ValidatedValueUnwrapper() |
Modifier and Type | Method and Description |
---|---|
abstract Type |
getValidatedValueType(Type valueType)
Retrieves the declared (static) type of the unwrapped object as to be used for constraint validator resolution.
|
abstract Object |
handleValidatedValue(T value)
Retrieves the value to be validated from the given wrapper object.
|
public abstract Object handleValidatedValue(T value)
value
- the wrapper object to retrieve the value frompublic abstract Type getValidatedValueType(Type valueType)
valueType
- the declared type of the wrapper objectCopyright © 2016 JBoss by Red Hat. All rights reserved.