| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ExtensionPoint | ||
| ↳ | com.google.gdata.data.introspection.Categories | ||
The Categories class implements the data model for the AtomPub categories element, as described in Sec 7.2.1 of the AtomPub specification.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Categories.Handler | The Handler class implements the XmlParser.ElementHandler for
parsing an app:categories element. |
||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| atomPubNs | |||||||||||
| categories | |||||||||||
| defaultScheme | |||||||||||
| fixed | |||||||||||
| href | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new empty Categories instance for the purposes of parsing
an AtomPub categories element or document.
| |||||||||||
Constructs a Categories instance with in-line category descriptions.
| |||||||||||
Constructs a Categories instance that references an out-of-line list of
categories stored in a category document.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new category to the category list.
| |||||||||||
Generates XML.
| |||||||||||
Returns the list of in-line categories or
null if there is no
associated list. | |||||||||||
Returns the default scheme used for nested categories if not specified
directly on the instance.
| |||||||||||
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. | |||||||||||
Returns the location of an external AtomPub categories document that
describes the list of categories.
| |||||||||||
Returns
true if the Categories instance contains in-line category
data that is a fixed set. | |||||||||||
Parses a Categories element using data read from the specified parser
instance.
| |||||||||||
Checks the attributes to see if there are any problems.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Consumes attributes from the attribute helper.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Extension
| |||||||||||
Constructs a new empty Categories instance for the purposes of parsing an AtomPub categories element or document.
Constructs a Categories instance with in-line category descriptions.
| fixed | true if the list of categories is a fixed set,
false if an open set. |
|---|---|
| defaultScheme | The default scheme uri value that will be used for all nested category elements that do not have a scheme. |
| categories | List of categories. |
Constructs a Categories instance that references an out-of-line list of categories stored in a category document.
| href |
|---|
Adds a new category to the category list.
| category | New category to add. |
|---|
Generates XML.
| w | Output writer |
|---|---|
| extProfile | Extension profile |
| IOException |
|---|
Returns the list of in-line categories or null if there is no
associated list.
null.
Returns the default scheme used for nested categories if not specified
directly on the instance. May be null if there is no default
scheme.
null.
The default implementation uses the AbstractExtension.AttributesHandler to handle
parsing the extension.
| p | Extension profile |
|---|---|
| namespace | Extension namespace |
| localName | Tag name, without the namespace prefix |
| attrs | Tag attributes |
Returns the location of an external AtomPub categories document that describes the list of categories.
null if none.
Returns true if the Categories instance contains in-line category
data that is a fixed set.
true there is a fixed set of categories.
Parses a Categories element using data read from the specified parser instance.
| extProfile | Extension profile. |
|---|---|
| parser | XML input parse. |
| IOException | |
|---|---|
| ParseException |
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.
| IllegalStateException |
|---|
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 |
|---|