public class Reminder extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Reminder.Method
Method.
|
Modifier and Type | Field and Description |
---|---|
static AttributeKey<DateTime> |
ABSOLUTE_TIME
Absolute time of the reminder.
|
static AttributeKey<java.lang.Integer> |
DAYS
Number of days before the start time.
|
static AttributeKey<java.lang.Integer> |
HOURS
Number of hours before the start time.
|
static ElementKey<java.lang.Void,Reminder> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
METHOD
Method.
|
static AttributeKey<java.lang.Integer> |
MINUTES
Number of minute before the start times.
|
Constructor and Description |
---|
Reminder()
Constructs an instance using the default key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
DateTime |
getAbsoluteTime()
Returns the absolute time of the reminder.
|
java.lang.Integer |
getDays()
Returns the number of days before the start time.
|
java.lang.Integer |
getHours()
Returns the number of hours before the start time.
|
java.lang.String |
getMethod()
Returns the method.
|
java.lang.Integer |
getMinutes()
Returns the number of minute before the start times.
|
boolean |
hasAbsoluteTime()
Returns whether it has the absolute time of the reminder.
|
boolean |
hasDays()
Returns whether it has the number of days before the start time.
|
int |
hashCode() |
boolean |
hasHours()
Returns whether it has the number of hours before the start time.
|
boolean |
hasMethod()
Returns whether it has the method.
|
boolean |
hasMinutes()
Returns whether it has the number of minute before the start times.
|
Reminder |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
Reminder |
setAbsoluteTime(DateTime absoluteTime)
Sets the absolute time of the reminder.
|
Reminder |
setDays(java.lang.Integer days)
Sets the number of days before the start time.
|
Reminder |
setHours(java.lang.Integer hours)
Sets the number of hours before the start time.
|
Reminder |
setMethod(java.lang.String method)
Sets the method.
|
Reminder |
setMinutes(java.lang.Integer minutes)
Sets the number of minute before the start times.
|
addElement, addElement, addElement, clear, createElement, createElement, 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, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
public static final ElementKey<java.lang.Void,Reminder> KEY
public static final AttributeKey<DateTime> ABSOLUTE_TIME
public static final AttributeKey<java.lang.Integer> DAYS
public static final AttributeKey<java.lang.Integer> HOURS
public static final AttributeKey<java.lang.String> METHOD
public static final AttributeKey<java.lang.Integer> MINUTES
public static void registerMetadata(MetadataRegistry registry)
public Reminder lock()
Element
public DateTime getAbsoluteTime()
public Reminder setAbsoluteTime(DateTime absoluteTime)
absoluteTime
- absolute time of the reminder or null
to resetpublic boolean hasAbsoluteTime()
public java.lang.Integer getDays()
public Reminder setDays(java.lang.Integer days)
days
- number of days before the start time or null
to resetpublic boolean hasDays()
public java.lang.Integer getHours()
public Reminder setHours(java.lang.Integer hours)
hours
- number of hours before the start time or null
to resetpublic boolean hasHours()
public java.lang.String getMethod()
public Reminder setMethod(java.lang.String method)
method
- method or null
to resetpublic boolean hasMethod()
public java.lang.Integer getMinutes()
public Reminder setMinutes(java.lang.Integer minutes)
minutes
- number of minute before the start times or null
to
resetpublic boolean hasMinutes()