com.google.gdata.model.gd
Class RecurrenceExceptionEntryLink

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

public class RecurrenceExceptionEntryLink
extends EntryLink

Describes an entry link used by a recurrence exception.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gdata.data.ILink
ILink.Rel, ILink.Type
 
Field Summary
static ElementKey<java.lang.Void,RecurrenceExceptionEntryLink> KEY
          The key for this element.
 
Fields inherited from class com.google.gdata.model.gd.EntryLink
HREF, READ_ONLY, REL
 
Constructor Summary
  RecurrenceExceptionEntryLink()
          Constructs an instance using the default key.
protected RecurrenceExceptionEntryLink(ElementKey<?,? extends RecurrenceExceptionEntryLink> key)
          Subclass constructor, allows subclasses to supply their own element key.
protected RecurrenceExceptionEntryLink(ElementKey<?,? extends RecurrenceExceptionEntryLink> key, Element source)
          Constructs a new instance by doing a shallow copy of data from an existing Element instance.
 
Method Summary
 RecurrenceExceptionEntry getEntry()
          Returns the nested entry.
 boolean hasEntry()
          Returns whether it has the nested entry.
 RecurrenceExceptionEntryLink lock()
          Locks this element.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 RecurrenceExceptionEntryLink setEntry(RecurrenceExceptionEntry entry)
          Sets the nested entry.
 
Methods inherited from class com.google.gdata.model.gd.EntryLink
getHref, getReadOnly, getRel, getType, hasHref, hasReadOnly, hasRel, setEntry, setHref, setReadOnly, setRel, setType, toString
 
Methods inherited from class com.google.gdata.model.Element
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, validate, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

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

Constructor Detail

RecurrenceExceptionEntryLink

public RecurrenceExceptionEntryLink()
Constructs an instance using the default key.


RecurrenceExceptionEntryLink

protected RecurrenceExceptionEntryLink(ElementKey<?,? extends RecurrenceExceptionEntryLink> key)
Subclass constructor, allows subclasses to supply their own element key.


RecurrenceExceptionEntryLink

protected RecurrenceExceptionEntryLink(ElementKey<?,? extends RecurrenceExceptionEntryLink> key,
                                       Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element. This constructor is used when adapting from one element key to another. You cannot call this constructor directly, instead use Element.createElement(ElementKey, Element).

Parameters:
key - The key to use for this element.
source - source element
Method Detail

registerMetadata

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


lock

public RecurrenceExceptionEntryLink lock()
Description copied from class: Element
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

Overrides:
lock in class Element

getEntry

public RecurrenceExceptionEntry getEntry()
Returns the nested entry.

Overrides:
getEntry in class EntryLink
Returns:
nested entry

setEntry

public RecurrenceExceptionEntryLink setEntry(RecurrenceExceptionEntry entry)
Sets the nested entry.

Parameters:
entry - nested entry or null to reset
Returns:
this to enable chaining setters

hasEntry

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

Overrides:
hasEntry in class EntryLink
Returns:
whether it has the nested entry