public static class AbsolutePath.PathElement extends Object
Constructor and Description |
---|
AbsolutePath.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 AbsolutePath.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 namepublic int getNodeKind()
Type
public 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-2014 Saxonica Limited. All rights reserved.