| Package | Description |
|---|---|
| com.google.gdata.model | |
| com.google.gdata.wireformats |
| Modifier and Type | Method and Description |
|---|---|
QName |
Element.getElementId()
Get the id of this element.
|
QName |
MetadataKey.getId()
Returns the id of the property.
|
QName |
Metadata.getName()
Returns the qualified name of the property, used during parsing and
generation.
|
QName |
ForwardingElementMetadata.getName() |
| Modifier and Type | Method and Description |
|---|---|
Element |
Element.addElement(QName id,
Element element)
Add a child element with the given ID.
|
boolean |
Path.Builder.addIfAttribute(QName id)
Conditionally adds a new attribute path step.
|
boolean |
Path.Builder.addIfElement(QName id)
Conditionally adds a new element path step.
|
int |
QName.compareTo(QName o) |
AttributeKey<?> |
ForwardingElementMetadata.findAttribute(QName id) |
AttributeKey<?> |
ElementMetadata.findAttribute(QName id)
Finds an attribute of the given id on this element or any adaptations.
|
ElementKey<?,?> |
ForwardingElementMetadata.findElement(QName id) |
ElementKey<?,?> |
ElementMetadata.findElement(QName id)
Finds an element of the given id on this element or any adaptations.
|
Object |
Element.getAttributeValue(QName id)
Get the value of an attribute by id.
|
Element |
Element.getElement(QName id)
Get a child element matching the specified qualified name.
|
List<Element> |
Element.getElements(QName id)
Returns an immutable list of elements matching the given id.
|
Set<Element> |
Element.getElementSet(QName id)
Get child elements matching the specified id.
|
Object |
Element.getElementValue(QName id)
Convenience method to return child element's text node as an object.
|
boolean |
Element.hasAttribute(QName id)
Returns true if the element has an attribute with the given id.
|
boolean |
Element.hasElement(QName id)
Returns true if the element has child element(s) with the given id.
|
boolean |
QName.matches(QName o)
Checks if this QName is a match for the other QName.
|
static ElementKey<String,Element> |
ElementKey.of(QName id)
Return a default element key using a string datatype and
Element as the element type. |
static AttributeKey<String> |
AttributeKey.of(QName id)
Construct and return a new attribute key with the default datatype of
String.
|
static <T> AttributeKey<T> |
AttributeKey.of(QName id,
Class<? extends T> datatype)
Construct and return a new attribute key with the given id and datatype.
|
static <T,V extends Element> |
ElementKey.of(QName id,
Class<? extends T> datatype,
Class<? extends V> elementType)
Construct an element key with the given id, datatype, and element type.
|
static <V extends Element> |
ElementKey.of(QName id,
Class<? extends V> elementType)
Construct an element key with the given id and element type, but with
a
Void datatype. |
Object |
Element.removeAttribute(QName id)
Deprecated.
use removeAttributeValue instead.
|
Object |
Element.removeAttributeValue(QName id)
Remove attribute (if present).
|
Element |
Element.removeElement(QName id)
Remove child element(s) of a given name.
|
Element |
Element.setAttributeValue(QName id,
Object attrValue)
Add attribute by id and value.
|
Element |
Element.setElement(QName id,
Element element)
Sets the value of the child element(s) with the given id.
|
MetadataCreator |
MetadataCreator.setName(QName name)
Sets the name of the property.
|
ElementCreator |
ElementCreator.setName(QName name)
Sets the name of the element.
|
AttributeCreator |
AttributeCreator.setName(QName name)
Sets the name of the attribute.
|
| Constructor and Description |
|---|
Element(QName qName)
Construct a generic undeclared element with the specified qualified name.
|
| Modifier and Type | Method and Description |
|---|---|
protected QName |
XmlGenerator.XmlElementGenerator.getName(Element e,
ElementMetadata<?,?> metadata)
Returns the QName of an element, possibly using the given metadata for
the name if it is not
null. |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
XmlHandler.createChildElement(QName qName,
ElementMetadata<?,?> metadata)
Create a child element for the given name and metadata.
|
protected XmlHandler |
XmlHandler.createHandler(QName qName,
Element parent,
Element child,
ElementMetadata<?,?> metadata)
Hook to allow subclasses to change the type of handler being returned.
|
protected ElementMetadata<?,?> |
XmlHandler.findMetadata(QName qName)
Returns the appropriate metadata to use for the given qualified name.
|
XmlHandler |
XmlHandler.getChildHandler(QName qName,
Attributes attrs,
List<XmlNamespace> namespaces)
Default child handler for xml.
|
void |
XmlHandler.processAttribute(QName qn,
String value) |
Copyright © 2012. All Rights Reserved.