| java.lang.Object | ||
| ↳ | com.google.gdata.data.AbstractExtension | |
| ↳ | com.google.gdata.data.extensions.CustomProperty | |
Name-value pair with optional type and unit.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | NAME | XML "name" attribute name | |||||||||
| String | TYPE | XML "type" attribute name | |||||||||
| String | UNIT | XML "unit" attribute name | |||||||||
| String | XML_NAME | XML element name | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| name | Can be a URI to indicate a specific ontology | ||||||||||
| type | Datatype such as string, integer, and date, or an ontology-specific URI | ||||||||||
| unit | Units of data - can also be a URI to indicate a specific ontology | ||||||||||
| value | Value | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default mutable constructor.
| |||||||||||
Immutable constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
| |||||||||||
Returns the can be a URI to indicate a specific ontology.
| |||||||||||
Returns the datatype such as string, integer, and date, or an
ontology-specific URI.
| |||||||||||
Returns the units of data - can also be a URI to indicate a specific
ontology.
| |||||||||||
Returns the value.
| |||||||||||
Returns whether it has the can be a URI to indicate a specific ontology.
| |||||||||||
Returns whether it has the datatype such as string, integer, and date, or
an ontology-specific URI.
| |||||||||||
Returns whether it has the units of data - can also be a URI to indicate a
specific ontology.
| |||||||||||
Returns whether it has the value.
| |||||||||||
Sets the can be a URI to indicate a specific ontology.
| |||||||||||
Sets the datatype such as string, integer, and date, or an
ontology-specific URI.
| |||||||||||
Sets the units of data - can also be a URI to indicate a specific ontology.
| |||||||||||
Sets the value.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Consumes attributes from the attribute helper.
| |||||||||||
Puts attributes into the attribute generator.
| |||||||||||
Checks the attributes to see if there are any problems.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Extension
| |||||||||||
XML "name" attribute name
XML "type" attribute name
XML "unit" attribute name
XML element name
Can be a URI to indicate a specific ontology
Datatype such as string, integer, and date, or an ontology-specific URI
Units of data - can also be a URI to indicate a specific ontology
Value
Default mutable constructor.
Immutable constructor.
| name | Can be a URI to indicate a specific ontology. |
|---|---|
| type | Datatype such as string, integer, and date, or an ontology-specific URI. |
| unit | Units of data - can also be a URI to indicate a specific ontology. |
| value | Value. |
| obj |
|---|
Returns the extension description, specifying whether it is required, and whether it is repeatable.
| required | Whether it is required |
|---|---|
| repeatable | Whether it is repeatable |
Returns the can be a URI to indicate a specific ontology.
Returns the datatype such as string, integer, and date, or an ontology-specific URI.
Returns the units of data - can also be a URI to indicate a specific ontology.
Returns the value.
Returns whether it has the can be a URI to indicate a specific ontology.
Returns whether it has the datatype such as string, integer, and date, or an ontology-specific URI.
Returns whether it has the units of data - can also be a URI to indicate a specific ontology.
Returns whether it has the value.
Sets the can be a URI to indicate a specific ontology.
| name | Can be a URI to indicate a specific ontology or
null to reset
|
|---|
Sets the datatype such as string, integer, and date, or an ontology-specific URI.
| type | Datatype such as string, integer, and date, or an
ontology-specific URI or null to reset
|
|---|
Sets the units of data - can also be a URI to indicate a specific ontology.
| unit | Units of data - can also be a URI to indicate a specific
ontology or null to reset
|
|---|
Sets the value.
| value | Value or null to reset
|
|---|
Consumes attributes from the attribute helper. May also use
consumeContent(boolean) to consume the element's text
content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
| helper | Attribute helper |
|---|
| ParseException |
|---|
Puts attributes into the attribute generator. Called from
generate(XmlWriter, ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
| generator | Attribute generator |
|---|
Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.