For example, (0,unbounded) corresponds to the '*' occurrence of DTD. (0,1) corresponds to the '?' occurrence of DTD.
| Modifier and Type | Field and Description |
|---|---|
| public final BigInteger | |
| public final BigInteger | |
| public static final Multiplicity | ONE
the constant representing the (1,1) multiplicity. |
| public static final Multiplicity | OPTIONAL
the constant representing the (0,1) multiplicity. |
| public static final Multiplicity | PLUS
the constant representing the (1,unbounded) multiplicity. |
| public static final Multiplicity | STAR
the constant representing the (0,unbounded) multiplicity. |
| public static final Multiplicity | ZERO
the constant representing the (0,0) multiplicity. |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Multiplicity | |
| public static Multiplicity | |
| public static Multiplicity | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public static Multiplicity | |
| public int | |
| public boolean | includes(Multiplicity rhs)
Returns true if the multiplicity represented by this object completely includes the multiplicity represented by the other object. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private static boolean | |
| public Multiplicity | |
| public Multiplicity | |
| public static Multiplicity | |
| public static Multiplicity | |
| public String |
| max | back to summary |
|---|---|
| public final BigInteger max | |
| min | back to summary |
|---|---|
| public final BigInteger min | |
| ONE | back to summary |
|---|---|
| public static final Multiplicity ONE the constant representing the (1,1) multiplicity. | |
| OPTIONAL | back to summary |
|---|---|
| public static final Multiplicity OPTIONAL the constant representing the (0,1) multiplicity. | |
| PLUS | back to summary |
|---|---|
| public static final Multiplicity PLUS the constant representing the (1,unbounded) multiplicity. | |
| STAR | back to summary |
|---|---|
| public static final Multiplicity STAR the constant representing the (0,unbounded) multiplicity. | |
| ZERO | back to summary |
|---|---|
| public static final Multiplicity ZERO the constant representing the (0,0) multiplicity. | |
| Multiplicity | back to summary |
|---|---|
| private Multiplicity(BigInteger min, BigInteger max) | |
| Multiplicity | back to summary |
|---|---|
| private Multiplicity(int min, int max) | |
| Multiplicity | back to summary |
|---|---|
| private Multiplicity(int min, Integer max) | |
| choice | back to summary |
|---|---|
| public static Multiplicity choice(Multiplicity lhs, Multiplicity rhs) | |
| create | back to summary |
|---|---|
| public static Multiplicity create(BigInteger min, BigInteger max) | |
| create | back to summary |
|---|---|
| public static Multiplicity create(int min, Integer max) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getMaxString | back to summary |
|---|---|
| public String getMaxString() Returns the string representation of the 'max' property. Either a number or a token "unbounded". | |
| group | back to summary |
|---|---|
| public static Multiplicity group(Multiplicity lhs, Multiplicity rhs) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| includes | back to summary |
|---|---|
| public boolean includes(Multiplicity rhs) Returns true if the multiplicity represented by this object completely includes the multiplicity represented by the other object. For example, we say [1,3] includes [1,2] but [2,4] doesn't include [1,3]. | |
| isAtMostOnce | back to summary |
|---|---|
| public boolean isAtMostOnce() returns true if the multiplicity is (0,1) or (1,1). | |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() returns true if the multiplicity is (0,1) | |
| isUnique | back to summary |
|---|---|
| public boolean isUnique() returns true if the multiplicity is (1,1). | |
| isZero | back to summary |
|---|---|
| public boolean isZero() returns true if the multiplicity is (0,0). | |
| isZero | back to summary |
|---|---|
| private static boolean isZero(BigInteger i) | |
| makeOptional | back to summary |
|---|---|
| public Multiplicity makeOptional() | |
| makeRepeated | back to summary |
|---|---|
| public Multiplicity makeRepeated() | |
| multiply | back to summary |
|---|---|
| public static Multiplicity multiply(Multiplicity lhs, Multiplicity rhs) | |
| oneOrMore | back to summary |
|---|---|
| public static Multiplicity oneOrMore(Multiplicity c) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. gets the string representation. mainly debug purpose.
| |