| java.lang.Object | ||
| ↳ | com.google.gdata.model.Element | |
| ↳ | com.google.gdata.model.atom.Category | |
The Category class represents the data model for the Atom category element.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| KEY | The key for this element. | ||||||||||
| LABEL | The category label attribute. | ||||||||||
| SCHEME | The category scheme attribute. | ||||||||||
| TERM | The category term attribute. | ||||||||||
| XML_LANG | Qualified name for the XML lang attribute | ||||||||||
| categoryPattern | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new category instance using the default metadata.
| |||||||||||
Constructs a new category from a Category string.
| |||||||||||
Constructs a new category with the specified scheme and term values.
| |||||||||||
Constructs a new category with the specified scheme, term, and label
values.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new category instance using the specified element key.
| |||||||||||
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the category label or
null if there is no label value. | |||||||||||
Returns the language associated with the category label (or
null
if undefined). | |||||||||||
Returns the category scheme or
null if the category does not have
a scheme. | |||||||||||
Returns the category term.
| |||||||||||
Locks this element.
| |||||||||||
Registers the metadata for this element.
| |||||||||||
Sets the category label.
| |||||||||||
Sets the language associated with the category label (or
nulll if
undefined). | |||||||||||
Sets the category scheme.
| |||||||||||
Sets the category term value.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Narrow down element's type to the most specific one possible.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.ICategory
| |||||||||||
Constructs a new category instance using the default metadata.
Constructs a new category from a Category string. The format of the String is the same as the one used to represent a category in a GData query: an optional scheme surrounded by braces, followed by a term.
| category | The category string |
|---|
Constructs a new category with the specified scheme and term values.
| scheme | |
|---|---|
| term |
Constructs a new category with the specified scheme, term, and label values.
| scheme | |
|---|---|
| term | |
| label |
Constructs a new category instance using the specified element key.
| key | The element key for the category. |
|---|
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. Will use the given ElementKey as
the key for the element.
| key | The element key to use for the category |
|---|---|
| source | Source element |
| obj |
|---|
Returns the category label or null if there is no label value.
Returns the language associated with the category label (or null
if undefined).
Returns the category scheme or null if the category does not have
a scheme.
null.
Returns the category term.
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.
Registers the metadata for this element.
| registry |
|---|
Sets the category label. A value of null indicates that there is
no label.
| label | Category label value. |
|---|
Sets the language associated with the category label (or nulll if
undefined).
| lang | Label language. |
|---|
Sets the category scheme. A value of null indicates that there is
no category scheme.
| scheme | Category scheme URI. |
|---|
Sets the category term value.
| term |
|---|
Narrow down element's type to the most specific one possible.
Any validation errors discovered during narrowing are accumulated in the validation context.
Default action is to not do anything with current element. Subclasses may override this function to narrow the type in some custom fashion.
| meta | The element metadata to narrow to. |
|---|---|
| vc | Validation context |