public class OriginalEvent extends Element
Modifier and Type | Field and Description |
---|---|
static AttributeKey<java.lang.String> |
HREF
URL of the original recurring event entry.
|
static ElementKey<java.lang.Void,OriginalEvent> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
ORIGINAL_ID
Event ID of the original recurring event entry.
|
Modifier | Constructor and Description |
---|---|
|
OriginalEvent()
Constructs an instance using the default key.
|
protected |
OriginalEvent(ElementKey<?,? extends OriginalEvent> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
OriginalEvent(ElementKey<?,? extends OriginalEvent> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHref()
Returns the URL of the original recurring event entry.
|
java.lang.String |
getOriginalId()
Returns the event ID of the original recurring event entry.
|
When |
getOriginalStartTime()
Returns the original start time.
|
boolean |
hasHref()
Returns whether it has the URL of the original recurring event entry.
|
boolean |
hasOriginalId()
Returns whether it has the event ID of the original recurring event entry.
|
boolean |
hasOriginalStartTime()
Returns whether it has the original start time.
|
OriginalEvent |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
OriginalEvent |
setHref(java.lang.String href)
Sets the URL of the original recurring event entry.
|
OriginalEvent |
setOriginalId(java.lang.String originalId)
Sets the event ID of the original recurring event entry.
|
OriginalEvent |
setOriginalStartTime(When originalStartTime)
Sets the original start time.
|
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
public static final ElementKey<java.lang.Void,OriginalEvent> KEY
public static final AttributeKey<java.lang.String> HREF
public static final AttributeKey<java.lang.String> ORIGINAL_ID
public OriginalEvent()
protected OriginalEvent(ElementKey<?,? extends OriginalEvent> key)
protected OriginalEvent(ElementKey<?,? extends OriginalEvent> key, Element source)
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)
.key
- The key to use for this element.source
- source elementpublic static void registerMetadata(MetadataRegistry registry)
public OriginalEvent lock()
Element
public java.lang.String getHref()
public OriginalEvent setHref(java.lang.String href)
href
- URL of the original recurring event entry or null
to
resetpublic boolean hasHref()
public java.lang.String getOriginalId()
public OriginalEvent setOriginalId(java.lang.String originalId)
originalId
- event ID of the original recurring event entry or null
to resetpublic boolean hasOriginalId()
public When getOriginalStartTime()
public OriginalEvent setOriginalStartTime(When originalStartTime)
originalStartTime
- original start time or null
to resetpublic boolean hasOriginalStartTime()