Package org.apache.sis.internal.jaxb.gco
Class Multiplicity
java.lang.Object
org.apache.sis.internal.jaxb.gco.Multiplicity
The possible cardinality of a relation. Represented by a set of simple multiplicity ranges.
Example:
- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<NumberRange<Integer>> The multiplicity, defined as ranges of integers. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new multiplicity initialized with no ranges.Multiplicity
(NumberRange<Integer>... ranges) Creates a new multiplicity initialized with the given ranges. -
Method Summary
Modifier and TypeMethodDescriptionrange()
Returns the multiplicity as a live list (change to this list are reflected to this object).
-
Field Details
-
range
The multiplicity, defined as ranges of integers.
-
-
Constructor Details
-
Multiplicity
public Multiplicity()Creates a new multiplicity initialized with no ranges. -
Multiplicity
Creates a new multiplicity initialized with the given ranges.- Parameters:
ranges
- the ranges.
-
-
Method Details
-
range
Returns the multiplicity as a live list (change to this list are reflected to this object).- Returns:
- the multiplicity ranges as a live list.
-