Enum Class XPathPatterns.Axis

java.lang.Object
java.lang.Enum<XPathPatterns.Axis>
eu.bandm.tools.paisley.xml.XPathPatterns.Axis
All Implemented Interfaces:
XPathPatterns.Operation, Serializable, Comparable<XPathPatterns.Axis>, java.lang.constant.Constable
Enclosing class:
XPathPatterns

public static enum XPathPatterns.Axis extends Enum<XPathPatterns.Axis> implements XPathPatterns.Operation
Representation of an XPath axis.

The XPath axis namespace is incompatible with the Java XML DOM API, and hence not supported.

See Also:
  • Enum Constant Details

    • self

      public static final XPathPatterns.Axis self
      Representation of the XPath axis self.
    • parent

      public static final XPathPatterns.Axis parent
      Representation of the XPath axis parent.
    • ancestor

      public static final XPathPatterns.Axis ancestor
      Representation of the XPath axis ancestor.
    • ancestorOrSelf

      public static final XPathPatterns.Axis ancestorOrSelf
      Representation of the XPath axis ancestor-or-self.
    • descendant

      public static final XPathPatterns.Axis descendant
      Representation of the XPath axis descendant.
    • descendantOrSelf

      public static final XPathPatterns.Axis descendantOrSelf
      Representation of the XPath axis descendant-or-self.
    • following

      public static final XPathPatterns.Axis following
      Representation of the XPath axis following.
    • followingSibling

      public static final XPathPatterns.Axis followingSibling
      Representation of the XPath axis following-sibling.
    • preceding

      public static final XPathPatterns.Axis preceding
      Representation of the XPath axis preceding.
    • precedingSibling

      public static final XPathPatterns.Axis precedingSibling
      Representation of the XPath axis preceding-sibling.
    • child

      public static final XPathPatterns.Axis child
      Representation of the XPath axis child.
    • attribute

      public static final XPathPatterns.Axis attribute
      Representation of the XPath axis attribute.
  • Method Details

    • values

      public static XPathPatterns.Axis[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static XPathPatterns.Axis valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMotif

      public Motif<? extends Node,Node> getMotif()
      Returns the motif associated with this navigation operation.
      Specified by:
      getMotif in interface XPathPatterns.Operation
      Returns:
      a motif that matches the hole against navigation targets from the given context object.
    • getPrincipalNodeTypeTest

      public XPathPatterns.Test getPrincipalNodeTypeTest()
      Returns a test for the principal node type associated with this axis.
      Returns:
      a test that is true precisely for the nodes of the principal node type of this axis