net.sf.saxon.s9api
Enum OccurrenceIndicator
java.lang.Object
java.lang.Enum<OccurrenceIndicator>
net.sf.saxon.s9api.OccurrenceIndicator
- All Implemented Interfaces:
- Serializable, Comparable<OccurrenceIndicator>
public enum OccurrenceIndicator
- extends Enum<OccurrenceIndicator>
Represents one of the possible occurrence indicators in a SequenceType. The four standard values are
ONE (no occurrence indicator), ZERO_OR_ONE (?), ZERO_OR_MORE (*), ONE_OR_MORE (+). In addition the
value ZERO is supported, this is used only in the type empty-sequence() which matches an empty sequence
and nothing else.
ZERO
public static final OccurrenceIndicator ZERO
ZERO_OR_ONE
public static final OccurrenceIndicator ZERO_OR_ONE
ZERO_OR_MORE
public static final OccurrenceIndicator ZERO_OR_MORE
ONE
public static final OccurrenceIndicator ONE
ONE_OR_MORE
public static final OccurrenceIndicator ONE_OR_MORE
values
public static final OccurrenceIndicator[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(OccurrenceIndicator c : OccurrenceIndicator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static OccurrenceIndicator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
Copyright (C) Michael H. Kay. All rights reserved.