| com.google.gdata.model.ElementMetadata<D, E extends com.google.gdata.model.Element> |
Known Indirect Subclasses
ForwardingElementMetadata<D, E extends Element>
|
Element metadata. This describes the metadata for an individual element,
which extends the Metadata interface with an element type, element
cardinality, validator, content requiredness, and attributes and child
elements. To create new instances of ElementMetadata you should use
build(ElementKey).
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ElementMetadata.Cardinality | Cardinality of an element. | ||||||||||
| ElementMetadata.MultipleVirtualElement | Defines a virtual element with multiple cardinality. | ||||||||||
| ElementMetadata.SingleVirtualElement | Defines a virtual element with single cardinality. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adapts this metadata to another type, based on the given kind.
| |||||||||||
Binds this element metadata to the given context.
| |||||||||||
Binds the attribute metadata associated with a particular key.
| |||||||||||
Binds the child element metadata associated with a particular key.
| |||||||||||
Create an element with this metadata as the metadata for the element.
| |||||||||||
Finds an attribute of the given id on this element or any adaptations.
| |||||||||||
Finds an element of the given id on this element or any adaptations.
| |||||||||||
Returns an immutable collection of attribute keys in declaration order.
| |||||||||||
Returns the cardinality of this element.
| |||||||||||
Returns the best namespace to use as the default in documents if this
element is the root type.
| |||||||||||
Returns an immutable set of child keys in declaration order.
| |||||||||||
Returns the element key that this element is bound to.
| |||||||||||
Returns the virtual element associated with this metadata with repeated
cardinality.
| |||||||||||
Returns the object properties associated with this metadata.
| |||||||||||
Returns an immutable collection of the namespaces that are referenced by
this element, its attributes, and recursively within any declared children.
| |||||||||||
Returns the virtual element associated with this metadata with single
cardinality.
| |||||||||||
Returns an element validator that can be used to validate this content.
| |||||||||||
Returns true if the text content of this element is required.
| |||||||||||
Returns true if this metadata declares the given attribute.
| |||||||||||
Returns true if this metadata declares the given child element.
| |||||||||||
Returns
true if the element has been flattened, which means its
value should be output directly in its parent. | |||||||||||
Returns true if the element type is referenced to generate the the output
representation of the element type.
| |||||||||||
Returns true if the element instance is selected for use in the current
operation.
| |||||||||||
Validates an element using the specified validation context and the
element validator associated with this element metadata.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gdata.model.Metadata
| |||||||||||
Adapts this metadata to another type, based on the given kind. Will return
the element key that the kind represents, or null if no adaptation
was found.
| kind |
|---|
Binds this element metadata to the given context.
| context |
|---|
Binds the attribute metadata associated with a particular key. Will return
null if no such attribute is declared.
| key |
|---|
Binds the child element metadata associated with a particular key. Will
return null if no such element is declared.
| key |
|---|
Create an element with this metadata as the metadata for the element.
| ContentCreationException | if the element could not be created. |
|---|
Finds an attribute of the given id on this element or any adaptations. This can be used to find appropriate attribute metadata to parse into while parsing an element. This will include attributes that are not declared as part of this metadata, but are declared on adaptations.
| id |
|---|
Finds an element of the given id on this element or any adaptations. This can be used to find appropriate element metadata to parse into while parsing an element.
| id |
|---|
Returns an immutable collection of attribute keys in declaration order.
Returns the cardinality of this element.
Returns the best namespace to use as the default in documents if this element is the root type.
Returns an immutable set of child keys in declaration order.
Returns the virtual element associated with this metadata with repeated cardinality. A virtual element represents a completely virtual DOM element that can have its own attributes and child elements, all of which are pulled from elsewhere in the DOM.
Returns the object properties associated with this metadata.
Returns an immutable collection of the namespaces that are referenced by this element, its attributes, and recursively within any declared children.
Returns the virtual element associated with this metadata with single cardinality. A virtual element represents a completely virtual DOM element that can have its own attributes and child elements, all of which are pulled from elsewhere in the DOM.
Returns an element validator that can be used to validate this content.
Returns true if the text content of this element is required.
Returns true if this metadata declares the given attribute.
| key |
|---|
Returns true if this metadata declares the given child element.
| element |
|---|
Returns true if the element has been flattened, which means its
value should be output directly in its parent.
Returns true if the element type is referenced to generate the the output representation of the element type. This generally means that the element may be visible or is required to evaluate a selection condition.
Returns true if the element instance is selected for use in the current operation.
| e |
|---|
Validates an element using the specified validation context and the element validator associated with this element metadata.
| vc | Validation context. |
|---|---|
| e | Element to be validate. |