public class AbsolutePath
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbsolutePath.PathElement
Inner class representing one step in the path
|
Constructor and Description |
---|
AbsolutePath(java.util.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(java.lang.Object obj) |
java.lang.String |
getPathUsingAbbreviatedUris()
Get a string representing the path using abbreviated namespace URIs to represent QNames
|
java.lang.String |
getPathUsingPrefixes()
Get a string representing the path using namespace prefixes to represent QNames
|
java.lang.String |
getPathUsingUris()
Get a string representing the path using namespace URIs to represent QNames
|
java.lang.String |
getSystemId() |
int |
hashCode() |
static AbsolutePath |
pathToNode(NodeInfo node)
Create an absolute path given a Node
|
void |
setSystemId(java.lang.String systemId) |
java.lang.String |
toString() |
public AbsolutePath(java.util.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 java.lang.String getPathUsingPrefixes()
/prefix:local[n]/prefix:local[m]/...
public java.lang.String getPathUsingUris()
/Q{uri}local[n]/Q{uri}local[m]/...
public java.lang.String getPathUsingAbbreviatedUris()
/Q{uri}local[n]/Q{uri}local[m]/...
, with the URIs shortenedpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setSystemId(java.lang.String systemId)
public java.lang.String getSystemId()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.