| java.lang.Object | |
| ↳ | com.google.gdata.model.ForwardingElementMetadata<D, E extends com.google.gdata.model.Element> |
The ForwardingElementMetadata abstract class provides a simple delegating ElementMetadata implementation. It can be subclassed to create transient element metadata instances that override or modify selected behaviors without requiring the creation of a new registered metadata type.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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.
| |||||||||||
Generate the value of this property on the given element.
| |||||||||||
Returns an immutable collection of attribute keys in declaration order.
| |||||||||||
Returns the cardinality of this element.
| |||||||||||
Returns the metadata context that this metadata was created for, or
null if this metadata is not part of a context. | |||||||||||
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 qualified name of the property, used during parsing and
generation.
| |||||||||||
Returns the parent of this metadata instance, or
null if this
metadata does not take the parent key into account. | |||||||||||
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
Schema that this metadata is a part of. | |||||||||||
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 child element.
| |||||||||||
Returns true if this metadata declares the given attribute.
| |||||||||||
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 this property is required.
| |||||||||||
Returns true if the element instance is selected for use in the current
operation.
| |||||||||||
Returns true if this property is visible.
| |||||||||||
Parses the value of this property into the given element.
| |||||||||||
Validates an element using the specified validation context and the
element validator associated with this element metadata.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the delegate element metadata instance that is the delegation
target for this forwarding instance.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.model.ElementMetadata
| |||||||||||
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 |
|---|
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 |
|---|
Generate the value of this property on the given element. If the property is virtual, it will be used to generate the value, otherwise the regular property value will be used.
| element | |
|---|---|
| metadata |
Returns an immutable collection of attribute keys in declaration order.
Returns the metadata context that this metadata was created for, or
null if this metadata is not part of a context.
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 qualified name of the property, used during parsing and generation. For atom this will usually be the same as the id, but for json or other alt types it may be different.
Returns the parent of this metadata instance, or null if this
metadata does not take the parent key into account.
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 child element.
| element |
|---|
Returns true if this metadata declares the given attribute.
| key |
|---|
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 this property is required. If a property is required it must appear in its parent element for that parent element to be valid.
Returns true if the element instance is selected for use in the current operation.
| e |
|---|
Returns true if this property is visible. If a property is visible it will be included in the output generation for its parent element, if it is hidden (not visible) it will not be included.
Parses the value of this property into the given element. If the property is virtual, it will be used to parse the value, otherwise the value will be stored directly in the property.
| element | |
|---|---|
| metadata | |
| value |
| ParseException |
|---|
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. |
Returns the delegate element metadata instance that is the delegation target for this forwarding instance.