Package org.biojava.bio
Class CardinalityConstraint
java.lang.Object
org.biojava.bio.CardinalityConstraint
A constraint on the number of values a property can have.
- Since:
- 1.3 Usefull constants for whenever you need one of the common cardinalitites. Otherwise, build a Location using the normal Location APIs.:
- Author:
- Matthew Pocock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Location
The property can have any number of values, including none.static final Location
This cardinality contains no intengers, not even zero.static final Location
The property should have exactly one value.static final Location
The property should have one or more values.static final Location
The property should have zero values.static final Location
The property should have zero or one values. -
Method Summary
-
Field Details
-
NONE
This cardinality contains no intengers, not even zero. It means that there is no way to fulfill this cardinality constraint. It's like Double.NaN -
ZERO
The property should have zero values. This means that it should be absent. -
ZERO_OR_ONE
The property should have zero or one values. This means that it is optional but if present must have exactly one value. -
ANY
The property can have any number of values, including none. -
ONE
The property should have exactly one value. -
ONE_OR_MORE
The property should have one or more values. It can not be absent.
-