public class XmlAttributeInfo
extends java.lang.Object
| Constructor and Description |
|---|
XmlAttributeInfo(java.lang.String name)
Constructs an XmlAttributeInfo with specified name.
|
XmlAttributeInfo(java.lang.String name,
int child,
int[] path,
java.lang.String attribute)
Constructs an XmlAttributeInfo with specified name, child
position, an int[] XML path, and a (possibly null)
attribute name.
|
XmlAttributeInfo(java.lang.String name,
int child,
IntArrayList path,
java.lang.String attribute)
Constructs an XmlAttributeInfo with specified name, child
position, an IntArrayList XML path, and a (possibly null)
attribute name.
|
XmlAttributeInfo(java.lang.String name,
XmlSpecialForm form)
Constructs an XmlAttributeInfo with specified name and
special form.
|
XmlAttributeInfo(java.lang.String name,
XmlTextInfo value)
Constructs an XmlAttributeInfo with specified
name and value.
|
XmlAttributeInfo(java.lang.String name,
XmlTreePath path)
Constructs an XmlAttributeInfo with specified name and XmlTreePath.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attributeNameRef()
Returns the name of the attribute referenced by the XML tree path.
|
int |
child()
Returns the child index of this attribute's value when this
value is an XmlTreePath
object.
|
static XmlAttributeInfo |
eltXmlAttributeInfo(java.lang.String name)
Creates and returns a new XmlAttributeInfo for specified
attribute name to be initialized to some child XML node's text
content.
|
boolean |
hasAttribute()
Returns true whenever this attribute is a reference to
the value of another attribute.
|
boolean |
hasChild()
Returns true whenever this attribute refers to
child CST.
|
boolean |
hasLiteralValue()
Returns true whenever this attribute has a literak
string for a value.
|
boolean |
hasPath()
Returns true whenever this attribute is a reference into
and XML tree with non empty XML tree address (the int[]
path).
|
boolean |
hasTerminalValue()
Returns true whenever this attribute's value
represents a $VALUE special form.
|
boolean |
hasTextForm()
Returns true whenever this attribute's value
represents a $TEXT special form.
|
boolean |
hasXmlTreePathValue()
Returns true whenever this attribute's value is an XmlTreePath object.
|
boolean |
isDeepAttributeReference()
Returns true whenever this attribute's value is the valkue
of a deeply nested attribute in a child's XML tree.
|
boolean |
isSpecialForm()
Returns true whenever this attribute's value
represents special form.
|
static XmlAttributeInfo |
literalXmlAttributeInfo(java.lang.String name,
java.lang.String literal)
Creates and returns a new XmlAttributeInfo for specified
attribute name and literal text.
|
java.lang.String |
name()
Returns the attribute's name.
|
static XmlAttributeInfo |
refXmlAttributeInfo(java.lang.String name,
java.lang.String ref)
Creates and returns a new XmlAttributeInfo for specified
attribute name and attribute reference.
|
XmlAttributeInfo |
setChild(int child)
Sets this attribute's value child position to the specified integer
and returns this XmlAttributeInfo.
|
XmlAttributeInfo |
setXmlPath(int[] path)
Sets this attribute's value child position to the specified integer
and returns this XmlAttributeInfo.
|
XmlSpecialForm |
specialForm()
Returns this attribute's value special form when it is one.
|
java.lang.String |
toString()
Returns a String form for this XmlAttributeInfo.
|
XmlTextInfo |
value()
Returns the attribute's value.
|
int[] |
xmlPath()
Whenever this attribute's value is an XmlTreePath object, this
returns the path as an int[].
|
public XmlAttributeInfo(java.lang.String name,
XmlTextInfo value)
public XmlAttributeInfo(java.lang.String name,
XmlTreePath path)
public XmlAttributeInfo(java.lang.String name,
int child,
int[] path,
java.lang.String attribute)
public XmlAttributeInfo(java.lang.String name,
int child,
IntArrayList path,
java.lang.String attribute)
public XmlAttributeInfo(java.lang.String name,
XmlSpecialForm form)
public XmlAttributeInfo(java.lang.String name)
public static XmlAttributeInfo refXmlAttributeInfo(java.lang.String name, java.lang.String ref)
public static XmlAttributeInfo literalXmlAttributeInfo(java.lang.String name, java.lang.String literal)
public static XmlAttributeInfo eltXmlAttributeInfo(java.lang.String name)
public final java.lang.String name()
public final XmlTextInfo value()
public final boolean hasLiteralValue()
public final XmlSpecialForm specialForm()
public final boolean isSpecialForm()
public final boolean hasTerminalValue()
public final boolean hasTextForm()
public final boolean hasXmlTreePathValue()
public final boolean hasPath()
public final int[] xmlPath()
public final XmlAttributeInfo setXmlPath(int[] path)
public final boolean isDeepAttributeReference()
public final XmlAttributeInfo setChild(int child)
public final int child()
public final boolean hasChild()
public final boolean hasAttribute()
public final java.lang.String attributeNameRef()
public final java.lang.String toString()
toString in class java.lang.Object