|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
Represent refinement choices for a node which is
in an Iterator
or Map
.
If the iterator is an indexed collection or a map,
the index or the key should be set.
The node is not necessarily a leaf node (ie. subnodes can
be added).
Method Detail |
---|
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext atKey(Object key)
Map
key
- map key
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext atIndex(Integer index)
List
or array
index
- index
@Deprecated ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext addNode(String name)
addPropertyNode
and addBeanNode
ConstraintViolation
will be associated to.
name
describes a single property. In particular,
dot (.) is not allowed.
name
- property name
name
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext addPropertyNode(String name)
ConstraintViolation
will be associated to.
name
describes a single property. In particular,
dot (.) is not allowed.
name
- property name
name
IllegalArgumentException
- if the name is nullConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderCustomizableContext addBeanNode()
ConstraintViolation
will be associated to.
Note that bean nodes are always leaf nodes.
ConstraintValidatorContext addConstraintViolation()
ConstraintViolation
to be generated if the
constraint validator mark the value as invalid.
Methods of the ConstraintViolationBuilder
instance this object
comes from and the constraint violation builder nested
objects throw IllegalStateException
after this call.
ConstraintValidatorContext
instance the
ConstraintViolationBuilder
comes from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |