com.google.gdata.model.gd
Class RecurrenceException

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.gd.RecurrenceException

public class RecurrenceException
extends Element

Describes an exception to a recurring event.


Field Summary
static ElementKey<java.lang.Void,RecurrenceException> KEY
          The key for this element.
static AttributeKey<java.lang.Boolean> SPECIALIZED
          Whether the exception is specialized.
 
Constructor Summary
  RecurrenceException()
          Constructs an instance using the default key.
protected RecurrenceException(ElementKey<?,? extends RecurrenceException> key)
          Subclass constructor, allows subclasses to supply their own element key.
protected RecurrenceException(ElementKey<?,? extends RecurrenceException> key, Element source)
          Constructs a new instance by doing a shallow copy of data from an existing Element instance.
 
Method Summary
 RecurrenceExceptionEntryLink getEntryLink()
          Returns the nested entry providing the details about the exception.
 java.lang.Boolean getSpecialized()
          Returns the whether the exception is specialized.
 boolean hasEntryLink()
          Returns whether it has the nested entry providing the details about the exception.
 boolean hasSpecialized()
          Returns whether it has the whether the exception is specialized.
 RecurrenceException lock()
          Locks this element.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 RecurrenceException setEntryLink(RecurrenceExceptionEntryLink entryLink)
          Sets the nested entry providing the details about the exception.
 RecurrenceException setSpecialized(java.lang.Boolean specialized)
          Sets the whether the exception is specialized.
 
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, toString, 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,RecurrenceException> KEY
The key for this element.


SPECIALIZED

public static final AttributeKey<java.lang.Boolean> SPECIALIZED
Whether the exception is specialized.

Constructor Detail

RecurrenceException

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


RecurrenceException

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


RecurrenceException

protected RecurrenceException(ElementKey<?,? extends RecurrenceException> 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 RecurrenceException 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

getEntryLink

public RecurrenceExceptionEntryLink getEntryLink()
Returns the nested entry providing the details about the exception.

Returns:
nested entry providing the details about the exception

setEntryLink

public RecurrenceException setEntryLink(RecurrenceExceptionEntryLink entryLink)
Sets the nested entry providing the details about the exception.

Parameters:
entryLink - nested entry providing the details about the exception or null to reset
Returns:
this to enable chaining setters

hasEntryLink

public boolean hasEntryLink()
Returns whether it has the nested entry providing the details about the exception.

Returns:
whether it has the nested entry providing the details about the exception

getSpecialized

public java.lang.Boolean getSpecialized()
Returns the whether the exception is specialized.

Returns:
whether the exception is specialized

setSpecialized

public RecurrenceException setSpecialized(java.lang.Boolean specialized)
Sets the whether the exception is specialized.

Parameters:
specialized - whether the exception is specialized or null to reset
Returns:
this to enable chaining setters

hasSpecialized

public boolean hasSpecialized()
Returns whether it has the whether the exception is specialized.

Returns:
whether it has the whether the exception is specialized