| com.google.gdata.model.Metadata<D> |
Known Indirect Subclasses
AttributeMetadata<D>,
ElementMetadata<D, E extends Element>,
ForwardingElementMetadata<D, E extends Element>
|
The Metadata interface defines operations that are common to all content
model properties (elements or attributes). This interface describes the id,
name and datatype of a property, as well as including flags for whether the
property is required, undeclared, or visible. Creating new instances of
Metadata should be done using Schema.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Metadata.VirtualValue | Defines a virtual value. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Generate the value of this property on the given element.
| |||||||||||
Returns the metadata context that this metadata was created for, or
null if this metadata is not part of a context. | |||||||||||
Returns the attribute key for this metadata.
| |||||||||||
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
Schema that this metadata is a part of. | |||||||||||
Returns true if this property is required.
| |||||||||||
Returns true if this property is visible.
| |||||||||||
Parses the value of this property into the given element.
| |||||||||||
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 the metadata context that this metadata was created for, or
null if this metadata is not part of a context.
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 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 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 | if parsing fails. |
|---|