com.google.gdata.model.gd
Class EntryLink

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.gd.EntryLink
All Implemented Interfaces:
ILink, Reference
Direct Known Subclasses:
RecurrenceExceptionEntryLink

public class EntryLink
extends Element
implements ILink

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.
 
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 com.google.gdata.model.Element
addElement, addElement, addElement, clear, createElement, createElement, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, lock, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,EntryLink> KEY
The key for this element.


HREF

public static final AttributeKey<java.lang.String> HREF
The entry URI.


READ_ONLY

public static final AttributeKey<java.lang.Boolean> READ_ONLY
Whether the contained entry is read-only.


REL

public static final AttributeKey<java.lang.String> REL
Qualified name of entry relation type attribute.

Constructor Detail

EntryLink

public EntryLink()
Default mutable constructor.

Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.


getEntry

public Entry getEntry()
Returns the nested entry.

Returns:
nested entry

setEntry

public void setEntry(Entry entry)
Sets the nested entry.

Parameters:
entry - nested entry or null to reset

hasEntry

public boolean hasEntry()
Returns whether it has the nested entry.

Returns:
whether it has the nested entry

getHref

public java.lang.String getHref()
Returns the entry URI.

Specified by:
getHref in interface Reference
Returns:
entry URI

setHref

public void setHref(java.lang.String href)
Sets the entry URI.

Specified by:
setHref in interface Reference
Parameters:
href - entry URI or null to reset

hasHref

public boolean hasHref()
Returns whether it has the entry URI.

Returns:
whether it has the entry URI

getReadOnly

public java.lang.Boolean getReadOnly()
Returns the whether the contained entry is read-only.

Returns:
whether the contained entry is read-only

setReadOnly

public void setReadOnly(java.lang.Boolean readOnly)
Sets the whether the contained entry is read-only.

Parameters:
readOnly - whether the contained entry is read-only or null to reset

hasReadOnly

public boolean hasReadOnly()
Returns whether it has the whether the contained entry is read-only.

Returns:
whether it has the whether the contained entry is read-only

getRel

public java.lang.String getRel()
Returns the entry relation type.

Specified by:
getRel in interface ILink
Returns:
entry relation type
See Also:
ILink.Rel

setRel

public void setRel(java.lang.String rel)
Sets the entry relation type.

Specified by:
setRel in interface ILink
Parameters:
rel - entry relation type or null to reset

hasRel

public boolean hasRel()
Returns whether it has the entry relation type.

Returns:
whether it has the entry relation type

toString

public java.lang.String toString()
Overrides:
toString in class Element

getType

public java.lang.String getType()
Description copied from interface: ILink
Returns the mime type of the link.

Specified by:
getType in interface ILink

setType

public void setType(java.lang.String type)
Description copied from interface: ILink
Sets the mime type of the link.

Specified by:
setType in interface ILink