public class XMLPath
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private XMLPathStage[] |
pathStage1d |
private java.lang.String |
strAttrName |
Constructor and Description |
---|
XMLPath(java.lang.String strXmlPath,
java.lang.String... str1dSeparators)
Constructor.
|
XMLPath(XMLPathStage[] pathStage1d,
java.lang.String strAttrName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrName()
Gets the target attribute name.
|
int |
getLength()
Gets the stage length of the path.
|
XMLPathStage |
getPathStage(int intIdx)
Gets the path stage at the given index.
|
XMLPathStage[] |
getPathStages()
Gets a copy of path stage array.
|
private void |
init(XMLPathStage[] pathStage1d,
java.lang.String strAttrName)
The back-end of constructors, actually initialize this object.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String... str1dSeparators) |
private XMLPathStage[] pathStage1d
private java.lang.String strAttrName
public XMLPath(java.lang.String strXmlPath, java.lang.String... str1dSeparators)
strXmlPath
- - A text presentation of the path.str1dSeparators
- - Path separators:public XMLPath(XMLPathStage[] pathStage1d, java.lang.String strAttrName)
pathStage1d
- - Path stage array.strAttrName
- - Attribute name.public int getLength()
public XMLPathStage getPathStage(int intIdx)
intIdx
- - Index of the path stage, starts from 0.public XMLPathStage[] getPathStages()
public java.lang.String getAttrName()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toString(java.lang.String... str1dSeparators)
str1dSeparators
- - Path separators:toString()
private void init(XMLPathStage[] pathStage1d, java.lang.String strAttrName)
pathStage1d
- - Path stage array.strAttrName
- - Attribute name.