net.sf.saxon.s9api
public class Axis extends Enum<Axis>
Field Summary | |
---|---|
static Axis | ANCESTOR |
static Axis | ANCESTOR_OR_SELF |
static Axis | ATTRIBUTE |
static Axis | CHILD |
static Axis | DESCENDANT |
static Axis | DESCENDANT_OR_SELF |
static Axis | FOLLOWING |
static Axis | FOLLOWING_SIBLING |
static Axis | NAMESPACE |
static Axis | PARENT |
static Axis | PRECEDING |
static Axis | PRECEDING_SIBLING |
static Axis | SELF |
static List<Axis> | VALUES An immutable list containing the values comprising this enum class in the order they're declared. |
Method Summary | |
---|---|
List<Axis> | family() Returns an immutable list containing the values comprising this enum class in the order they're declared. |
byte | getAxisNumber()
Get the axis number, as defined in class |
static Axis | valueOf(String name) Static factory to return the enum constant pertaining to the given string name. |
for(Axis c : Axis.VALUES) System.out.println(c);
VALUES
. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES
.Returns: an immutable list containing the values comprising this enum class, in the order they're declared.
Returns: the axis number
Throws: IllegalArgumentException if this enum class has no constant with the specified name.