|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.gd.EntryLink
public class EntryLink
Describes a nested entry link.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gdata.data.ILink |
|---|
ILink.Rel, ILink.Type |
| Field Summary | |
|---|---|
static AttributeKey<java.lang.String> |
HREF
The entry URI. |
static ElementKey<java.lang.Void,EntryLink> |
KEY
The key for this element. |
static AttributeKey<java.lang.Boolean> |
READ_ONLY
Whether the contained entry is read-only. |
static AttributeKey<java.lang.String> |
REL
Qualified name of entry relation type attribute. |
| Constructor Summary | |
|---|---|
|
EntryLink()
Default mutable constructor. |
protected |
EntryLink(ElementKey<?,? extends EntryLink> key)
Create an instance using a different key. |
protected |
EntryLink(ElementKey<?,? extends EntryLink> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. |
| Method Summary | |
|---|---|
Entry |
getEntry()
Returns the nested entry. |
java.lang.String |
getHref()
Returns the entry URI. |
java.lang.Boolean |
getReadOnly()
Returns the whether the contained entry is read-only. |
java.lang.String |
getRel()
Returns the entry relation type. |
java.lang.String |
getType()
Returns the mime type of the link. |
boolean |
hasEntry()
Returns whether it has the nested entry. |
boolean |
hasHref()
Returns whether it has the entry URI. |
boolean |
hasReadOnly()
Returns whether it has the whether the contained entry is read-only. |
boolean |
hasRel()
Returns whether it has the entry relation type. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
void |
setEntry(Entry entry)
Sets the nested entry. |
void |
setHref(java.lang.String href)
Sets the entry URI. |
void |
setReadOnly(java.lang.Boolean readOnly)
Sets the whether the contained entry is read-only. |
void |
setRel(java.lang.String rel)
Sets the entry relation type. |
void |
setType(java.lang.String type)
Sets the mime type of the link. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ElementKey<java.lang.Void,EntryLink> KEY
public static final AttributeKey<java.lang.String> HREF
public static final AttributeKey<java.lang.Boolean> READ_ONLY
public static final AttributeKey<java.lang.String> REL
| Constructor Detail |
|---|
public EntryLink()
protected EntryLink(ElementKey<?,? extends EntryLink> key)
protected EntryLink(ElementKey<?,? extends EntryLink> key,
Element source)
Element instance. Will use the given ElementKey as the
key for the element.
key - The key to use for this element.source - source element| Method Detail |
|---|
public static void registerMetadata(MetadataRegistry registry)
public Entry getEntry()
public void setEntry(Entry entry)
entry - nested entry or null to resetpublic boolean hasEntry()
public java.lang.String getHref()
getHref in interface Referencepublic void setHref(java.lang.String href)
setHref in interface Referencehref - entry URI or null to resetpublic boolean hasHref()
public java.lang.Boolean getReadOnly()
public void setReadOnly(java.lang.Boolean readOnly)
readOnly - whether the contained entry is read-only or
null to resetpublic boolean hasReadOnly()
public java.lang.String getRel()
getRel in interface ILinkILink.Relpublic void setRel(java.lang.String rel)
setRel in interface ILinkrel - entry relation type or null to resetpublic boolean hasRel()
public java.lang.String toString()
toString in class Elementpublic java.lang.String getType()
ILink
getType in interface ILinkpublic void setType(java.lang.String type)
ILink
setType in interface ILink
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||