Interface ValueExtractor.ValueReceiver
-
- Enclosing interface:
- ValueExtractor<T>
public static interface ValueExtractor.ValueReceiverProvides a set of methods receiving value extracted by theValueExtractor.The value has to be passed to the method corresponding best to the type of the original value.
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidindexedValue(String nodeName, int i, Object object)Receives the value extracted from an indexed object (e.g.voiditerableValue(String nodeName, Object object)Receives the value extracted from an iterable object that is not indexed (e.g.voidkeyedValue(String nodeName, Object key, Object object)Receives the value extracted from a keyed object (e.g.voidvalue(String nodeName, Object object)Receives the value extracted from an object.
-
-
-
Method Detail
-
value
void value(String nodeName, Object object)
Receives the value extracted from an object.- Parameters:
nodeName- the name of the node representing the container element. If notnull, the name will be used when adding a container element node to thePathobject- the value to validate
-
iterableValue
void iterableValue(String nodeName, Object object)
Receives the value extracted from an iterable object that is not indexed (e.g. aIterable,Setor aMap).- Parameters:
nodeName- the name of the node representing the container element. If notnull, the name will be used when adding a container element node to thePathobject- the value to validate
-
indexedValue
void indexedValue(String nodeName, int i, Object object)
Receives the value extracted from an indexed object (e.g. aList).- Parameters:
nodeName- the name of the node representing the container element. If notnull, the name will be used when adding a container element node to thePathi- the index of the value in the original objectobject- the value to validate
-
keyedValue
void keyedValue(String nodeName, Object key, Object object)
Receives the value extracted from a keyed object (e.g. aMap).- Parameters:
nodeName- the name of the node representing the container element. If notnull, the name will be used when adding a container element node to thePathkey- the key of the value in the original objectobject- the value to validate
-
-