javax.validation
Interface ConstraintValidatorContext.ErrorBuilder.NodeBuilderDefinedContext

Enclosing interface:
ConstraintValidatorContext.ErrorBuilder

public static interface ConstraintValidatorContext.ErrorBuilder.NodeBuilderDefinedContext

Represent a subnode whose context is known (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.
 

Method Detail

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.