public class XmlTreePath
extends java.lang.Object
| Constructor and Description |
|---|
XmlTreePath() |
XmlTreePath(int child,
int[] path,
java.lang.String attribute)
Constructs an XmlTreePath with child position, an
int[] xml tree address, and attribute reference name.
|
XmlTreePath(int child,
IntArrayList path,
java.lang.String attribute)
Constructs an XmlTreePath with child position, an
IntArreyList xml tree address, and attribute reference name.
|
XmlTreePath(int child,
java.lang.String attribute)
Constructs an XmlTreePath with child position and
attribute reference name.
|
XmlTreePath(java.lang.String attribute)
Constructs an XmlTreePath with unspecified child position
nor tree address, and specified attribute reference name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attribute()
Returns attribute.
|
int |
child()
Returns the child index.
|
boolean |
hasAttribute()
Returns true whenever this actually refers to an
attribute.
|
boolean |
hasChild()
Returns true whenever this has a known child index.
|
int[] |
path()
Returns the path.
|
XmlTreePath |
setChild(int child)
Sets the child index to the specified integer and returns this
XmlTreePath.
|
XmlTreePath |
setPath(int[] path)
Sets the XML path to the specified int[] and returns this
XmlTreePath.
|
XmlTreePath |
setPath(IntArrayList path)
Sets the XML path to the specified int[] and returns this
XmlTreePath.
|
java.lang.String |
toString()
Returns a String form of this XmlTreePath
of the form c[x1 ...
|
public XmlTreePath()
public XmlTreePath(int child,
java.lang.String attribute)
public XmlTreePath(int child,
int[] path,
java.lang.String attribute)
public XmlTreePath(int child,
IntArrayList path,
java.lang.String attribute)
public XmlTreePath(java.lang.String attribute)
public XmlTreePath setChild(int child)
public int child()
public boolean hasChild()
public XmlTreePath setPath(int[] path)
public XmlTreePath setPath(IntArrayList path)
public int[] path()
public java.lang.String attribute()
public boolean hasAttribute()
public final java.lang.String toString()
toString in class java.lang.Object