|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SeqType.Occ>
org.basex.query.value.type.SeqType.Occ
public static enum SeqType.Occ
Number of occurrences (cardinality).
Enum Constant Summary | |
---|---|
ONE
Exactly one. |
|
ONE_MORE
One or more. |
|
ZERO
Zero. |
|
ZERO_MORE
Zero or more. |
|
ZERO_ONE
Zero or one. |
Field Summary | |
---|---|
int |
max
Maximal number of occurrences. |
int |
min
Minimal number of occurrences. |
Method Summary | |
---|---|
boolean |
check(long c)
Checks if the given cardinality is supported by this type. |
boolean |
instanceOf(SeqType.Occ o)
Checks if the specified occurrence indicator is an instance of the current occurrence indicator. |
SeqType.Occ |
intersect(SeqType.Occ other)
Computes the intersection between this occurrence indicator and the given one. |
java.lang.String |
toString()
|
SeqType.Occ |
union(SeqType.Occ other)
Computes the union between this occurrence indicator and the given one. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public final int min
public final int max
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean instanceOf(SeqType.Occ o)
o
- occurrence indicator to check
public SeqType.Occ intersect(SeqType.Occ other)
ZERO
and ONE
), null
is
returned.
other
- other occurrence indicator
null
public SeqType.Occ union(SeqType.Occ other)
other
- other occurrence indicator
public boolean check(long c)
c
- cardinality
public java.lang.String toString()
toString
in class java.lang.Enum<SeqType.Occ>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |