public class AbsolutePath extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbsolutePath.PathElement
Inner class representing one step in the path
|
Constructor and Description |
---|
AbsolutePath(List<AbsolutePath.PathElement> path)
Create an absolute path given a list of path elements
|
Modifier and Type | Method and Description |
---|---|
void |
appendAttributeName(NodeName attributeName)
Append an attribute name to the path
|
boolean |
equals(Object obj) |
String |
getPathUsingAbbreviatedUris()
Get a string representing the path using abbreviated namespace URIs to represent QNames
|
String |
getPathUsingPrefixes()
Get a string representing the path using namespace prefixes to represent QNames
|
String |
getPathUsingUris()
Get a string representing the path using namespace URIs to represent QNames
|
String |
getSystemId() |
int |
hashCode() |
static AbsolutePath |
pathToNode(NodeInfo node)
Create an absolute path given a Node
|
void |
setSystemId(String systemId) |
String |
toString() |
public AbsolutePath(List<AbsolutePath.PathElement> path)
path
- the list of path elements, starting from the root. It is not necessary to include a path element
for the document node.public void appendAttributeName(NodeName attributeName)
attributeName
- the name of the attributepublic static AbsolutePath pathToNode(NodeInfo node)
node
- the node whose path is requiredpublic String getPathUsingPrefixes()
/prefix:local[n]/prefix:local[m]/...
public String getPathUsingUris()
/Q{uri}local[n]/Q{uri}local[m]/...
public String getPathUsingAbbreviatedUris()
/Q{uri}local[n]/Q{uri}local[m]/...
, with the URIs shortenedpublic void setSystemId(String systemId)
public String getSystemId()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.