public class XmlTextInfoArg
extends java.lang.Object
| Constructor and Description |
|---|
XmlTextInfoArg()
Constructs an empty XmlTextInfoArg.
|
XmlTextInfoArg(int child,
int[] path,
java.lang.String attribute)
Constructs an XmlTextInfoArg with specified child position,
(possibly null) xml path, and a (possibly null) attribute name.
|
XmlTextInfoArg(int child,
IntArrayList path,
java.lang.String attribute)
Constructs an XmlTextInfoArg with specified child position,
(possibly null) xml path, and a (possibly null) attribute name.
|
XmlTextInfoArg(int child,
java.lang.String attribute)
Constructs an XmlTextInfoArg with specified child position
and a (possibly null) attribute name.
|
XmlTextInfoArg(java.lang.String attribute)
Constructs an XmlTextInfoArg with specified child position,
(possibly null) xml path, and a (possibly null) attribute name.
|
XmlTextInfoArg(XmlTreePath xmlTreePath)
Constructs an XmlTextInfoArg with specified child position
and an attribute name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attribute()
Returns the Xml tree attribute, when there is one.
|
int |
child()
Returns the child index, when there is one.
|
boolean |
hasAttribute()
Returns the true whenever this refers to an attribute.
|
boolean |
hasChild()
Returns true whenever this has a child index.
|
boolean |
hasPath()
Returns true whenever this has a non-vacuous XML tree
address.
|
boolean |
hasXmlTreePath()
Returns true whenever this has a non-null
XmlTreePath.
|
boolean |
isLiteral()
Returns true whenever this represents a literal string.
|
java.lang.String |
makeTextForm(ArrayList xmlForms,
IntToIntMap childMap)
Returns a text form for this XmlTextInfoArg given
the supplied context.
|
int[] |
path()
Returns the XML tree address, when there is one.
|
XmlTextInfoArg |
setChild(int child)
Sets the child position index to the specified integer
and returns this XmlTextInfoArg.
|
XmlTextInfoArg |
setPath(int[] path)
Sets the XML tree address path to the specified int[] and
returns this XmlTextInfoArg.
|
XmlTextInfoArg |
setText(java.lang.String text)
Sets the _text filed to text and returns
this.
|
XmlTextInfoArg |
setXmlTreePath(XmlTreePath path)
Sets _xmlTreePath to the specified XmlTreePath and
returns this XmlTextInfoArg.
|
java.lang.String |
text()
Returns the text string.
|
java.lang.String |
toString()
Returns a String form of this XmlTextInfoArg.
|
XmlTreePath |
xmlTreePath()
Returns the XmlTreePath object
if there is one, or null, otherwise.
|
public XmlTextInfoArg()
public XmlTextInfoArg(XmlTreePath xmlTreePath)
public XmlTextInfoArg(java.lang.String attribute)
public XmlTextInfoArg(int child,
java.lang.String attribute)
public XmlTextInfoArg(int child,
int[] path,
java.lang.String attribute)
public XmlTextInfoArg(int child,
IntArrayList path,
java.lang.String attribute)
public boolean isLiteral()
public java.lang.String text()
public XmlTextInfoArg setText(java.lang.String text)
public int child()
public boolean hasChild()
public XmlTextInfoArg setChild(int child)
public XmlTreePath xmlTreePath()
public XmlTextInfoArg setXmlTreePath(XmlTreePath path)
public boolean hasXmlTreePath()
public int[] path()
public boolean hasPath()
public XmlTextInfoArg setPath(int[] path)
public java.lang.String attribute()
public boolean hasAttribute()
public java.lang.String makeTextForm(ArrayList xmlForms, IntToIntMap childMap)
public java.lang.String toString()
toString in class java.lang.Object