public static enum SeqType.Occ extends java.lang.Enum<SeqType.Occ>
| Enum Constant and Description |
|---|
ONE
Exactly one.
|
ONE_MORE
One or more.
|
ZERO
Zero.
|
ZERO_MORE
Zero or more.
|
ZERO_ONE
Zero or one.
|
| Modifier and Type | Field and Description |
|---|---|
int |
max
Maximal number of occurrences.
|
int |
min
Minimal number of occurrences.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(long c)
Checks if the given cardinality is supported by this type.
|
boolean |
instance(SeqType.Occ o)
Checks if the specified occurrence indicator is an instance of the
current occurrence indicator.
|
java.lang.String |
toString() |
static SeqType.Occ |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SeqType.Occ[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeqType.Occ ZERO
public static final SeqType.Occ ZERO_ONE
public static final SeqType.Occ ONE
public static final SeqType.Occ ONE_MORE
public static final SeqType.Occ ZERO_MORE
public final int min
public final int max
public static SeqType.Occ[] values()
for (SeqType.Occ c : SeqType.Occ.values()) System.out.println(c);
public static SeqType.Occ valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean instance(SeqType.Occ o)
o - occurrence indicator to checkpublic boolean check(long c)
c - cardinalitypublic java.lang.String toString()
toString in class java.lang.Enum<SeqType.Occ>