com.icl.saxon.axis
Class ChildAxis
java.lang.Object
|
+--com.icl.saxon.axis.Axis
|
+--com.icl.saxon.axis.ChildAxis
- public class ChildAxis
- extends Axis
Fields inherited from class com.icl.saxon.axis.Axis |
nodeTest |
Method Summary |
NodeEnumeration |
getEnumeration(NodeInfo node)
Return an enumeration over the nodes reached by the given axis from a specified node |
boolean |
isPeer()
An axis has the peer property if no node in the result is an ancestor of another
(redundant: if this is true the sibling property will also be true) |
boolean |
isSibling()
An Axis has the sibling property if all the nodes it returns have the same parent |
boolean |
isSorted()
An Axis has the sorted property if it returns nodes in document order |
boolean |
isWithinSubtree()
An axis has the withinSubtree property if all the nodes it returns are in the subtree
rooted at the start node, that is if it is a subset of the descendants-of-self axis |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChildAxis
public ChildAxis()
getEnumeration
public NodeEnumeration getEnumeration(NodeInfo node)
throws org.xml.sax.SAXException
- Description copied from class:
Axis
- Return an enumeration over the nodes reached by the given axis from a specified node
- Overrides:
getEnumeration
in class Axis
- Following copied from class:
com.icl.saxon.axis.Axis
- Parameters:
node
- NodeInfo representing the node from which the enumeration startsnodeType
- the type(s) of node to be included, e.g. NodeInfo.ELEMENT, NodeInfo.TEXT.
The value NodeInfo.NODE means include any type of node.nodeNameTest
- include only nodes with this name (e.g. an element name). Set this to null
to include nodes of any name.- Returns:
- a NodeEnumeration that scans the nodes reached by the axis in turn.
- Throws:
org.xml.sax.SAXException
- if an invalid axis is specified
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isSorted
public boolean isSorted()
- Description copied from class:
Axis
- An Axis has the sorted property if it returns nodes in document order
- Overrides:
isSorted
in class Axis
isSibling
public boolean isSibling()
- Description copied from class:
Axis
- An Axis has the sibling property if all the nodes it returns have the same parent
- Overrides:
isSibling
in class Axis
isPeer
public boolean isPeer()
- Description copied from class:
Axis
- An axis has the peer property if no node in the result is an ancestor of another
(redundant: if this is true the sibling property will also be true)
- Overrides:
isPeer
in class Axis
isWithinSubtree
public boolean isWithinSubtree()
- Description copied from class:
Axis
- An axis has the withinSubtree property if all the nodes it returns are in the subtree
rooted at the start node, that is if it is a subset of the descendants-of-self axis
- Overrides:
isWithinSubtree
in class Axis