Class Axis


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

      Constructors 
      Constructor Description
      Axis()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte getAxisNumber​(java.lang.String name)
      Resolve an axis name into a symbolic constant representing the axis
      • Methods inherited from class java.lang.Object

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

      • ANCESTOR

        public static final byte ANCESTOR
        Constants representing the axes
        See Also:
        Constant Field Values
      • 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 java.lang.String[] axisName
        Table giving the name each axis
    • Constructor Detail

      • Axis

        public Axis()
    • Method Detail

      • getAxisNumber

        public static byte getAxisNumber​(java.lang.String name)
                                  throws XPathException
        Resolve an axis name into a symbolic constant representing the axis
        Throws:
        XPathException