validate
2.0.0-SNAPSHOT.108
validate
/
io.spine.validate.option
/
GoesConstraint
Goes
Constraint
public
final
class
GoesConstraint
extends
FieldConstraint
<
V
>
Content copied to clipboard
A constraint which checks whether a field is set only if the specific related field is also set.
Functions
Inherited functions
Functions
accept
Link copied to clipboard
public
void
accept
(
ConstraintTranslator
<
? extends
Object
>
visitor
)
Content copied to clipboard
Accepts the given
ConstraintTranslator
.
error
Message
Link copied to clipboard
public
String
errorMessage
(
FieldContext
field
)
Content copied to clipboard
Produces an error message for the given field validation context.
Inherited functions
field
Link copied to clipboard
public
final
FieldDeclaration
field
(
)
Content copied to clipboard
option
Value
Link copied to clipboard
public
final
V
optionValue
(
)
Content copied to clipboard
Returns a value that describes the constraint.
target
Type
Link copied to clipboard
public
MessageType
targetType
(
)
Content copied to clipboard
The associated message type.