| java.lang.Object | ||
| ↳ | com.google.gdata.model.Element | |
| ↳ | com.google.gdata.model.atompub.Collection | |
The Collection class defines the basic Java object model representation and XML parsing/generation support for an APP collection.
The implementation is versioned to support the AtomPub draft version 9 introspection format (used for the GData v1 implementation) as well as the final RFC5023 format (used for all other versions). The key difference between the two is that draft used an attribute for the collection title and a comma-delimited list for accepted MIME types, where the final version uses atom:title and repeating app:accept elements.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| HREF | The href attribute. | ||||||||||
| KEY | The key for this element. | ||||||||||
| TITLE | Qualified name of title attribute. | ||||||||||
| coreVersion | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default mutable constructor.
| |||||||||||
Construct a collection with the given href.
| |||||||||||
Construct a collection with all fields.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Lets subclasses create an instance using a custom key.
| |||||||||||
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new accept element.
| |||||||||||
Adds a new accept string.
| |||||||||||
Adds a new app categories document.
| |||||||||||
Returns a list of accept strings.
| |||||||||||
Returns the accept elements.
| |||||||||||
Returns the app categories documents.
| |||||||||||
Returns the href.
| |||||||||||
Returns the title.
| |||||||||||
Returns whether it has the accept elements.
| |||||||||||
Returns whether it has the app categories documents.
| |||||||||||
Returns whether it has the href.
| |||||||||||
Returns whether it has the title.
| |||||||||||
Registers the metadata for this element.
| |||||||||||
Removes an accept element.
| |||||||||||
Removes an accept string.
| |||||||||||
Resolve this element's state against the metadata.
| |||||||||||
Sets the href.
| |||||||||||
Sets the title.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Reference
| |||||||||||
From interface
com.google.gdata.data.introspection.ICollection
| |||||||||||
Default mutable constructor.
Construct a collection with the given href.
| href | Href. |
|---|
Construct a collection with all fields.
| href | |
|---|---|
| title | |
| accepts |
Lets subclasses create an instance using a custom key.
| key |
|---|
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. Will use the given ElementMetadata as the
metadata for the element.
| key | The element key to use for this element |
|---|---|
| source | Source element |
Adds a new accept element.
| accept | Accept element |
|---|
Adds a new accept string.
| accept | Accept string |
|---|
Adds a new app categories document.
| categories | App categories document |
|---|
Returns a list of accept strings.
Returns the app categories documents.
Returns the href.
Returns whether it has the accept elements.
Returns whether it has the app categories documents.
Returns whether it has the href.
Returns whether it has the title.
Registers the metadata for this element.
| registry |
|---|
Removes an accept element.
| accept | Accept element |
|---|
Removes an accept string.
| acceptStr | The string to remove |
|---|
Resolve this element's state against the metadata. Accumulates errors in caller's validation context.
| metadata | |
|---|---|
| vc | Validation context |
Sets the href.
| href | Href or null to reset
|
|---|
Sets the title.
| title | Title or null to reset
|
|---|