public static class AbsolutePath.PathElement
extends java.lang.Object
| Constructor and Description |
|---|
PathElement(int nodeKind,
NodeName name,
int index)
Create a path element
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Get the position of the node
|
NodeName |
getName()
Get the name of the node
|
int |
getNodeKind()
Get the node kind
|
void |
toString(FastStringBuffer fsb,
char option)
Get a string representation of the path
|
public PathElement(int nodeKind,
NodeName name,
int index)
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.public int getNodeKind()
Typepublic NodeName getName()
public int getIndex()
public void toString(FastStringBuffer fsb, char option)
fsb - buffer into which the string representation will be writtenoption - for representing namespaces:
'p': use namepace prefix. 'u': use full URI. 's': use abbreviated URICopyright (c) 2004-2020 Saxonica Limited. All rights reserved.