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. If not
null
, the name will be used when adding a container element node to the
Path
object
- the value to validatevoid iterableValue(String nodeName, Object object)
Iterable
, Set
or a Map
).nodeName
- the name of the node representing the container element. If not
null
, the name will be used when adding a container element node to the
Path
object
- the value to validatevoid indexedValue(String nodeName, int i, Object object)
List
).nodeName
- the name of the node representing the container element. If not
null
, the name will be used when adding a container element node to the
Path
i
- 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. If not
null
, the name will be used when adding a container element node to the
Path
key
- the key of the value in the original objectobject
- the value to validateCopyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.