Annotation Interface SingletonCollection
This rule enables you to restrict a collection property to contain only zero or one elements.
Type = exclusive-property
Attributes: message: override the default error message
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
DEFAULT_MESSAGE
- See Also:
-
-
Element Details
-
message
String message- Default:
"The collection property can not contain more than 1 item, found: %s"
-