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.
|
Modifier | Constructor and Description |
---|---|
|
Reminder()
Constructs an instance using the default key.
|
protected |
Reminder(ElementKey<?,? extends Reminder> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
Reminder(ElementKey<?,? extends Reminder> 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 |
---|---|
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.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, 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,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 Reminder()
protected Reminder(ElementKey<?,? extends Reminder> key)
protected Reminder(ElementKey<?,? extends Reminder> 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 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()