Package eu.bandm.tools.paisley.xml
Enum Class 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresentation of the XPath axisancestor.Representation of the XPath axisancestor-or-self.Representation of the XPath axisattribute.Representation of the XPath axischild.Representation of the XPath axisdescendant.Representation of the XPath axisdescendant-or-self.Representation of the XPath axisfollowing.Representation of the XPath axisfollowing-sibling.Representation of the XPath axisparent.Representation of the XPath axispreceding.Representation of the XPath axispreceding-sibling.Representation of the XPath axisself. -
Method Summary
Modifier and TypeMethodDescriptiongetMotif()Returns the motif associated with this navigation operation.Returns a test for the principal node type associated with this axis.static XPathPatterns.AxisReturns the enum constant of this class with the specified name.static XPathPatterns.Axis[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
self
Representation of the XPath axisself. -
parent
Representation of the XPath axisparent. -
ancestor
Representation of the XPath axisancestor. -
ancestorOrSelf
Representation of the XPath axisancestor-or-self. -
descendant
Representation of the XPath axisdescendant. -
descendantOrSelf
Representation of the XPath axisdescendant-or-self. -
following
Representation of the XPath axisfollowing. -
followingSibling
Representation of the XPath axisfollowing-sibling. -
preceding
Representation of the XPath axispreceding. -
precedingSibling
Representation of the XPath axispreceding-sibling. -
child
Representation of the XPath axischild. -
attribute
Representation of the XPath axisattribute.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMotif
Returns the motif associated with this navigation operation.- Specified by:
getMotifin interfaceXPathPatterns.Operation- Returns:
- a motif that matches the hole against navigation targets from the given context object.
-
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
-