| java.lang.Object | |
| ↳ | com.google.gdata.data.Category |
Category type.
For the purposes of comparison, two Category instances are considered to be identical if they have matching schemes and terms. The label attributes are not used for the purpose of testing equality.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Category.AtomHandler | <atom:category> parser. |
||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| char | SCHEME_PREFIX | The character used to prefix any (optional) scheme in the compound scheme+term Category format. | |||||||||
| char | SCHEME_SUFFIX | The character used to suffix any (optional) scheme in the compound scheme+term Category format. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| categoryPattern | |||||||||||
| label | Human-readable label. | ||||||||||
| labelLang | Language. | ||||||||||
| scheme | Scheme (domain). | ||||||||||
| term | Term. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new category from a Category string.
| |||||||||||
Constructs a new category.
| |||||||||||
Constructs a new category.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Generates XML in the Atom format.
| |||||||||||
Generates XML in the RSS format.
| |||||||||||
Returns the category label or
null if there is no label value. | |||||||||||
Returns the category scheme or
null if the category does not have
a scheme. | |||||||||||
Returns the category term.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.ICategory
| |||||||||||
The character used to prefix any (optional) scheme in the compound scheme+term Category format.
The character used to suffix any (optional) scheme in the compound scheme+term Category format.
Human-readable label.
Language.
Scheme (domain).
Term.
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.
| scheme | |
|---|---|
| term |
Constructs a new category.
| scheme | |
|---|---|
| term | |
| label |
| obj |
|---|
Generates XML in the Atom format.
| w | Output writer. |
|---|
| IOException |
|---|
Generates XML in the RSS format.
| w | Output writer. |
|---|
| IOException |
|---|
Returns the category label or null if there is no label value.
Returns the category scheme or null if the category does not have
a scheme.
null.
Returns the category term.
| v |
|---|
| v |
|---|
| v |
|---|
| v |
|---|