public static interface ValueExtractor.ValueReceiver
ValueExtractor.
The value has to be passed to the method corresponding best to the type of the original value.
| Modifier and Type | Method and Description |
|---|---|
void |
indexedValue(String nodeName,
int i,
Object object)
Receives the value extracted from an indexed object (e.g.
|
void |
iterableValue(String nodeName,
Object object)
Receives the value extracted from an
Iterable object that is not indexed (e.g. |
void |
keyedValue(String nodeName,
Object key,
Object object)
Receives the value extracted from a keyed object (e.g.
|
void |
value(String nodeName,
Object object)
Receives the value extracted from an object.
|
void value(String nodeName, Object object)
nodeName - the name of the node representing the container element. It will be added to the Pathobject - the value to validatevoid iterableValue(String nodeName, Object object)
nodeName - the name of the node representing the container element. It will be added to the Pathobject - the value to validatevoid indexedValue(String nodeName, int i, Object object)
List or an array).nodeName - the name of the node representing the container element. It will be added to the Pathi - the index of the value in the original objectobject - the value to validatevoid keyedValue(String nodeName, Object key, Object object)
Map).nodeName - the name of the node representing the container element. It will be added to the Pathkey - the key of the value in the original objectobject - the value to validateCopyright © 2007-2017 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0.