| java.lang.Object | ||
| ↳ | com.google.gdata.model.Element | |
| ↳ | com.google.gdata.model.atom.Source | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
The Source class represents an Atom feed source object primarily on the data
model for an <atom:source> element.
Here is the Relax-NG schema that represents an Atom 1.0 Source:
atomSource =
element atom:source {
atomCommonAttributes,
(atomAuthor*
& atomCategory*
& atomContributor*
& atomGenerator?
& atomIcon?
& atomId?
& atomLink*
& atomLogo?
& atomRights?
& atomSubtitle?
& atomTitle?
& atomUpdated?
& extensionElement*)
}
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Source.Generator | Class representing atom:generator. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CONSTRUCT | The key for Source used as a construct. | ||||||||||
| ICON | atom:icon | ||||||||||
| ID | The atom:id element. | ||||||||||
| KEY | The key for this element. | ||||||||||
| LOGO | atom:logo | ||||||||||
| RIGHTS | atom:rights | ||||||||||
| SUBTITLE | atom:subtitle | ||||||||||
| TITLE | atom:title | ||||||||||
| UPDATED | atom:updated | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance using the default metadata.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance using the specified element metadata.
| |||||||||||
Copy constructor that initializes a new Source instance to have identical
contents to another instance, using a shared reference to the same child
element instances.
| |||||||||||
Copy constructor that initializes a new Source instance to have identical
contents to another element, using a shared state.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a link pointing to an HTML representation.
| |||||||||||
Retrieves the first HTML link.
| |||||||||||
This method is deprecated.
Use
getIconUri() instead. | |||||||||||
Gets icon URI associated with source.
| |||||||||||
Retrieves the first link with the supplied
rel and/or type
value. | |||||||||||
Return the links that match the given
rel and type values. | |||||||||||
This method is deprecated.
Use
getLogoUri() instead. | |||||||||||
Gets logo URI associated with source.
| |||||||||||
Registers the metadata for this element.
| |||||||||||
Remove all links that match the given
rel and type values. | |||||||||||
Sets icon URI associated with source.
| |||||||||||
This method is deprecated.
Use
setIcon(URI) instead. | |||||||||||
This method is deprecated.
Use
setLogo(URI) instead. | |||||||||||
Sets logo URI associated with source.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
The key for Source used as a construct. This will apply to all uses of Source regardless of QName, in particular to Feed.
Constructs a new instance using the default metadata.
Constructs a new instance using the specified element metadata.
| key | Element key for this element. |
|---|
Copy constructor that initializes a new Source instance to have identical contents to another instance, using a shared reference to the same child element instances. Default metadata is used.
| sourceSource |
|---|
Copy constructor that initializes a new Source instance to have identical contents to another element, using a shared state. The element key is given by the caller.
| key | Element key to associate with copy |
|---|---|
| source | Source to copy data from |
Adds a link pointing to an HTML representation.
| htmlUrl | Link URL |
|---|---|
| lang | Optional language code |
| title | Optional title |
This method is deprecated.
Use getIconUri() instead.
Gets icon URI associated with source.
Gets icon URI associated with source.
Retrieves the first link with the supplied rel and/or type
value.
If either parameter is null, doesn't return matches for that
parameter.
| rel | |
|---|---|
| type |
Return the links that match the given rel and type values.
| relToMatch | rel value to match or null to match any
rel value. |
|---|---|
| typeToMatch | type value to match or null to match any
type value. |
This method is deprecated.
Use getLogoUri() instead.
Gets logo URI associated with source.
Gets logo URI associated with source.
Registers the metadata for this element.
| registry |
|---|
Remove all links that match the given rel and type values.
| relToMatch | rel value to match or null to match any
rel value. |
|---|---|
| typeToMatch | type value to match or null to match any
type value.
|
| version | |
|---|---|
| uri | |
| name |
Sets icon URI associated with source.
| v | Icon URI |
|---|
This method is deprecated.
Use setIcon(URI) instead.
Sets icon URI associated with source.
| v | Icon URI |
|---|
| v |
|---|
This method is deprecated.
Use setLogo(URI) instead.
Sets logo URI associated with source.
| v | Logo URI |
|---|
Sets logo URI associated with source.
| v | Logo URI |
|---|