| java.lang.Object | |
| ↳ | com.google.gdata.util.common.xml.XmlWriter.Element |
The Element class contains information about an XML element. Used to keep
track of namespace alias/URI mappings. This class may be subclassed by
XmlWriter subclasses that want to track additional information about output
elements. The createElement(String, String, String) method can be
overridden to instantiate a specialized Element subclass.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | NOT_REPEATING | Sentinel value used for repeating elements. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enclosingDefaultNamespace | The default namespace uri that will be active after closure of this element. | ||||||||||
| hasAttributes | True if the element has attributes. | ||||||||||
| name | Local name of the element. | ||||||||||
| nsAlias | Namespace prefix for the element. | ||||||||||
| nsDecls | Namespace declarations associated with this element. | ||||||||||
| nsUri | Full namespace uri for the element. | ||||||||||
| openTagEnded | Set to false if the closing bracket of the element's start
tag has been written (i.e. |
||||||||||
| repeatingCount | Indicates the number of repeating child elements written within
the scope of the current startRepeatingElement() /
endRepeatingElement() pair for this element. |
||||||||||
| repeatingIndex | If an element is a part of a series of repeating element within its
parent, this will contain the zero-based index of the child, else
the value will be NOT_REPEATING. |
||||||||||
| unformattedChildren | True if this element contains unformatted children (text nodes, raw blobs of XML, or unescaped strings. | ||||||||||
| xmlLang | xml:lang attribute of the element. | ||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an element.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a namespace declaration to the element, avoiding duplicates.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Sentinel value used for repeating elements.
The default namespace uri that will be active after closure of this
element. If null, indicates that the default namespace for
the enclosing scope is the same as for the element scope.
True if the element has attributes.
Local name of the element.
Namespace prefix for the element.
Full namespace uri for the element.
Set to false if the closing bracket of the element's start
tag has been written (i.e. if writeOpenTagEnd() has been
called yet). Used to optimized elements that have no nested content
or children.
Indicates the number of repeating child elements written within
the scope of the current startRepeatingElement() /
endRepeatingElement() pair for this element. The value will be
NOT_REPEATING if not currently writing repeating elements.
If an element is a part of a series of repeating element within its
parent, this will contain the zero-based index of the child, else
the value will be NOT_REPEATING.
True if this element contains unformatted children (text nodes, raw blobs of XML, or unescaped strings.
xml:lang attribute of the element.
Constructs an element. This constructor should never be directly called,
always use the createElement(String, String, String) method to
create new elements.
| nsAlias | |
|---|---|
| nsUri | |
| name |
Adds a namespace declaration to the element, avoiding duplicates.
| ns |
|---|