Package net.sf.saxon.om
Class AbsolutePath.PathElement
java.lang.Object
net.sf.saxon.om.AbsolutePath.PathElement
- Enclosing class:
AbsolutePath
Inner class representing one step in the path
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
Get the position of the nodegetName()
Get the name of the nodeint
Get the node kindvoid
toString
(FastStringBuffer fsb, char option) Get a string representation of the path
-
Field Details
-
nodeKind
int nodeKind -
name
NodeName name -
index
int index
-
-
Constructor Details
-
PathElement
Create a path element- Parameters:
nodeKind
- the kind of nodename
- the name of the nodeindex
- the position of the node relative to siblings of the same node kind and name. The value -1 indicates "not known", which will typically be the case for streamed nodes.
-
-
Method Details
-
getNodeKind
public int getNodeKind()Get the node kind- Returns:
- the node kind, as a constant from
Type
-
getName
Get the name of the node- Returns:
- the node name
-
getIndex
public int getIndex()Get the position of the node- Returns:
- the position relative to siblings of the same node kind and name. The value -1 indicates "not known", which will typically be the case for streamed nodes.
-
toString
Get a string representation of the path- Parameters:
fsb
- buffer into which the string representation will be writtenoption
- for representing namespaces: 'p': use namepace prefix. 'u': use full URI. 's': use abbreviated URI
-