GoesConstraint

public final class GoesConstraint extends FieldConstraint<V>

A constraint which checks whether a field is set only if the specific related field is also set.

Functions

Link copied to clipboard
public void accept(ConstraintTranslator<? extends Object> visitor)
Accepts the given ConstraintTranslator.
Link copied to clipboard
public String errorMessage(FieldContext field)
Produces an error message for the given field validation context.

Inherited functions

Link copied to clipboard
public final FieldDeclaration field()
Link copied to clipboard
public final V optionValue()
Returns a value that describes the constraint.
Link copied to clipboard
public MessageType targetType()
The associated message type.