| java.lang.Object | ||
| ↳ | com.google.gdata.model.Element | |
| ↳ | com.google.gdata.model.atom.Link | |
Class representing atom:link.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ETAG | The etag attribute. | ||||||||||
| HREF | The href attribute. | ||||||||||
| HREFLANG | The hreflang attribute. | ||||||||||
| KEY | The key for this element. | ||||||||||
| LENGTH | The length attribute. | ||||||||||
| REL | The rel attribute. | ||||||||||
| TITLE | The title attribute. | ||||||||||
| TYPE | The type attribute. | ||||||||||
| XML_LANG | The xml:lang attribute. | ||||||||||
| length | Length of the resource pointed to by href, in bytes. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance using the default metadata.
| |||||||||||
This constructor is deprecated.
Use
Link(String, String, URI) instead.
| |||||||||||
Constructs a new instance using the default metadata, and setting
the links rel, type, and href attributes.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance using the specified element metadata.
| |||||||||||
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the content of the link, or
null if no content has been set. | |||||||||||
Etag of linked resource or
null if unknown. | |||||||||||
Link URI.
| |||||||||||
Language of resource pointed to by href.
| |||||||||||
Link relation type.
| |||||||||||
Link title.
| |||||||||||
Language of link title.
| |||||||||||
MIME type of the link target.
| |||||||||||
Returns whether this link matches the given
rel and type
values. | |||||||||||
Registers the metadata for this element.
| |||||||||||
Sets the atom:content element nested inside this atom:link.
| |||||||||||
Sets the value of the resource reference.
| |||||||||||
Sets the link relation type.
| |||||||||||
Sets the mime type of the link.
| |||||||||||
| 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.ILink
| |||||||||||
From interface
com.google.gdata.data.Reference
| |||||||||||
Length of the resource pointed to by href, in bytes.
Constructs a new instance using the default metadata.
This constructor is deprecated.
Use Link(String, String, URI) instead.
Constructs a new instance using the default metadata, and setting the links rel, type, and href attributes.
| rel | |
|---|---|
| type | |
| href |
Constructs a new instance using the default metadata, and setting the links rel, type, and href attributes.
| rel | |
|---|---|
| type | |
| href |
Constructs a new instance using the specified element metadata.
| key | The element key for this link. |
|---|
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 |
Return the content of the link, or null if no content has been set.
This is used to inline an atom:content element inside an atom:link element.
Etag of linked resource or null if unknown.
Link URI.
Language of resource pointed to by href.
Link relation type. Possible values include self, prev, next, enclosure, etc.
Link title.
Language of link title.
MIME type of the link target.
Returns whether this link matches 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.
|
Registers the metadata for this element.
| registry |
|---|
Sets the atom:content element nested inside this atom:link.
| c | The content to place inside the link. |
|---|
| v |
|---|
| v |
|---|
Sets the value of the resource reference.
| v | The resource href. |
|---|
| v |
|---|
| v |
|---|
Sets the link relation type.
| v |
|---|
| v |
|---|
| v |
|---|
Sets the mime type of the link.
| v |
|---|
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 |