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 validateComments to: bean-validation-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.