validate
2.0.0-SNAPSHOT.108
validate
/
io.spine.validate.option
/
IsRequiredConstraint
Is
Required
Constraint
public
final
class
IsRequiredConstraint
implements
Constraint
Content copied to clipboard
A
oneof
group constraint which signifies that one of the fields must be set.
Functions
Functions
accept
Link copied to clipboard
public
void
accept
(
ConstraintTranslator
<
? extends
Object
>
visitor
)
Content copied to clipboard
Accepts the given
ConstraintTranslator
.
declaration
Link copied to clipboard
public
OneofDeclaration
declaration
(
)
Content copied to clipboard
Obtains the
oneof
declaration.
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.
oneof
Name
Link copied to clipboard
public
FieldName
oneofName
(
)
Content copied to clipboard
Obtains the name of the
oneof
group.
target
Type
Link copied to clipboard
public
MessageType
targetType
(
)
Content copied to clipboard
The associated message type.