| java.lang.Object | |
| ↳ | com.google.gdata.wireformats.XmlGenerator.XmlElementGenerator |
The XmlElementGenerator class provides the default implementation of the
interface. It will generate start and end
elements based directly on the element metadata, attributes, and value.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
End an element, writing a close tag if needed.
| |||||||||||
Start an element.
| |||||||||||
Write the text content for an element.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get a list of attributes for the given element.
| |||||||||||
Returns the QName of an element, possibly using the given metadata for
the name if it is not
null. | |||||||||||
Get a collection of namespaces for the current element and parent.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.wireformats.XmlGenerator.ElementGenerator
| |||||||||||
End an element, writing a close tag if needed.
| xw | |
|---|---|
| e | |
| metadata |
| IOException |
|---|
Start an element. If an ElementGenerator instances writes a full
element tag, it should return false to indicate that textContent
and child elements should not be added.
| xw | The xml writer to write to. |
|---|---|
| parent | The parent element. |
| e | The element to start. |
| metadata | The metadata for the element |
| IOException |
|---|
Write the text content for an element.
| xw | |
|---|---|
| e | |
| metadata |
| IOException |
|---|
Get a list of attributes for the given element.
| e | |
|---|---|
| metadata |
Returns the QName of an element, possibly using the given metadata for
the name if it is not null.
| e | |
|---|---|
| metadata |
Get a collection of namespaces for the current element and parent. This will only return namespaces for the root element, because we bubble all namespaces up to the root for wire efficiency.
| parent | |
|---|---|
| e | |
| metadata |