Class Axis

java.lang.Object
net.sf.saxon.om.Axis

public final class Axis extends Object
An axis, that is a direction of navigation in the document structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    Constant representing the ancestor axis
    static final byte
    Constant representing the ancestor-or-self axis
    static final byte
    Constant representing the attribute axis
    static final String[]
    Table giving the name each axis
    static final byte
    Constant representing the child axis
    static final byte
    Constant representing the descendant axis
    static final byte
    Constant representing the descendant-or-self axis
    static final byte
    Constant representing the following axis
    static final byte
    Constant representing the following-sibling axis
    static final boolean[]
    Table indicating for each axis whether it is in forwards document order
    static final boolean[]
    Table indicating for each axis whether it is a peer axis.
    static final boolean[]
    Table indicating for each axis whether it is in reverse document order
    static final boolean[]
    Table indicating for each axis whether it is contained within the subtree rooted at the origin node.
    static final byte
    Constant representing the namespace axis
    static final byte
    Constant representing the parent axis
    static final byte
    Constant representing the preceding axis
    static final byte
    Constant representing the preceding-or-ancestor axis.
    static final byte
    Constant representing the preceding-sibling axis
    static final short[]
    Table indicating the principal node type of each axis
    static final byte
    Constant representing the self axis
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    containsNodeKind(int axis, int nodeKind)
    Determine whether a given kind of node can be found on a given axis
    static byte
    Resolve an axis name into a symbolic constant representing the axis
    static boolean
    isAlwaysEmpty(int axis, int nodeKind)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ANCESTOR

      public static final byte ANCESTOR
      Constant representing the ancestor axis
      See Also:
    • ANCESTOR_OR_SELF

      public static final byte ANCESTOR_OR_SELF
      Constant representing the ancestor-or-self axis
      See Also:
    • ATTRIBUTE

      public static final byte ATTRIBUTE
      Constant representing the attribute axis
      See Also:
    • CHILD

      public static final byte CHILD
      Constant representing the child axis
      See Also:
    • DESCENDANT

      public static final byte DESCENDANT
      Constant representing the descendant axis
      See Also:
    • DESCENDANT_OR_SELF

      public static final byte DESCENDANT_OR_SELF
      Constant representing the descendant-or-self axis
      See Also:
    • FOLLOWING

      public static final byte FOLLOWING
      Constant representing the following axis
      See Also:
    • FOLLOWING_SIBLING

      public static final byte FOLLOWING_SIBLING
      Constant representing the following-sibling axis
      See Also:
    • NAMESPACE

      public static final byte NAMESPACE
      Constant representing the namespace axis
      See Also:
    • PARENT

      public static final byte PARENT
      Constant representing the parent axis
      See Also:
    • PRECEDING

      public static final byte PRECEDING
      Constant representing the preceding axis
      See Also:
    • PRECEDING_SIBLING

      public static final byte PRECEDING_SIBLING
      Constant representing the preceding-sibling axis
      See Also:
    • SELF

      public static final byte SELF
      Constant representing the self axis
      See Also:
    • PRECEDING_OR_ANCESTOR

      public static final byte PRECEDING_OR_ANCESTOR
      Constant representing the preceding-or-ancestor axis. This axis is used internally by the xsl:number implementation, it returns the union of the preceding axis and the ancestor axis.
      See Also:
    • principalNodeType

      public static final short[] principalNodeType
      Table indicating the principal node type of each axis
    • isForwards

      public static final boolean[] isForwards
      Table indicating for each axis whether it is in forwards document order
    • isReverse

      public static final boolean[] isReverse
      Table indicating for each axis whether it is in reverse document order
    • isPeerAxis

      public static final boolean[] isPeerAxis
      Table indicating for each axis whether it is a peer axis. An axis is a peer axis if no node on the axis is an ancestor of another node on the axis.
    • isSubtreeAxis

      public static final boolean[] isSubtreeAxis
      Table indicating for each axis whether it is contained within the subtree rooted at the origin node.
    • axisName

      public static final String[] axisName
      Table giving the name each axis
  • Method Details

    • getAxisNumber

      public static byte getAxisNumber(String name) throws StaticError
      Resolve an axis name into a symbolic constant representing the axis
      Parameters:
      name -
      Returns:
      integer value representing the named axis
      Throws:
      StaticError
    • isAlwaysEmpty

      public static boolean isAlwaysEmpty(int axis, int nodeKind)
    • containsNodeKind

      public static boolean containsNodeKind(int axis, int nodeKind)
      Determine whether a given kind of node can be found on a given axis