javax.validation
Interface ConstraintValidatorContext.ErrorBuilder.NodeBuilderCustomizableContext

Enclosing interface:
ConstraintValidatorContext.ErrorBuilder

public static interface ConstraintValidatorContext.ErrorBuilder.NodeBuilderCustomizableContext

Represent a subnode whose context is configurable (ie index, key and isInIterable)


Method Summary
 ConstraintValidatorContext addError()
          Add the new error report to be generated if the constraint validator mark the value as invalid.
 ConstraintValidatorContext.ErrorBuilder.NodeBuilderCustomizableContext addSubNode(java.lang.String name)
          Add a subNode to the path the error will be associated to.
 ConstraintValidatorContext.ErrorBuilder.NodeContextBuilder inIterable()
          Mark the node as being in an Iterable or a Map
 

Method Detail

inIterable

ConstraintValidatorContext.ErrorBuilder.NodeContextBuilder inIterable()
Mark the node as being in an Iterable or a Map

Returns:
a builder representing iterable details

addSubNode

ConstraintValidatorContext.ErrorBuilder.NodeBuilderCustomizableContext addSubNode(java.lang.String name)
Add a subNode to the path the error will be associated to. name describes a single property. In particular, dot (.) are not allowed.

Parameters:
name - property name
Returns:
a builder representing this node

addError

ConstraintValidatorContext addError()
Add the new error report to be generated if the constraint validator mark the value as invalid. Methods of the ErrorBuilder instance this object comes from and the error builder nested objects returns IllegalStateException after this call.

Returns:
ConstraintValidatorContext instance the ErrorBuilder comes from


Copyright © 2007-2009. All Rights Reserved.