public interface PropertyAtomDateTime extends PropertyAtom, Property.PropertyDateTime
Calendar
.Property.PropertyBoolean, Property.PropertyConcept, Property.PropertyConceptReference, Property.PropertyContainedConcept, Property.PropertyDateTime, Property.PropertyDouble, Property.PropertyInt, Property.PropertyLong, Property.PropertyString
HISTORY_POLICY_ALL_VALUES, HISTORY_POLICY_CHANGES_ONLY
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
getDateTime()
Gets the current value of this property.
|
java.util.Calendar |
getDateTime(long time)
Gets the value that property had at the given time.
|
java.util.Calendar |
getDateTimeAtIdx(int idx)
Gets the value of this
PropertyAtomDateTime at the given history index. |
boolean |
setDateTime(java.util.Calendar value)
Sets the current value of this
PropertyAtom . |
boolean |
setDateTime(java.util.Calendar value,
long time)
Sets the value of this
PropertyAtom with a given time. |
getHistoryTimeInterval,getString, getString, getStringAtIdx, getTimeAtIdx, howCurrent, howMany, howOld, isSet, setValue, setValue
getHistoryPolicy, getHistorySize, getName, getParent
java.util.Calendar getDateTime()
java.util.Calendar getDateTime(long time) throws PropertyException
time
- a time expressed in number of milliseconds since the epoch.Calendar
value.PropertyException
- if the value at the given time is unknown.java.util.Calendar getDateTimeAtIdx(int idx) throws PropertyException
PropertyAtomDateTime
at the given history index.idx
- index in the history of this property.PropertyException
- if the index is invalid.Property.getHistoryPolicy()
,
Property.getHistorySize()
boolean setDateTime(java.util.Calendar value)
PropertyAtom
.value
- the value to setProperty.getHistoryPolicy()
boolean setDateTime(java.util.Calendar value, long time)
PropertyAtom
with a given time.value
- the value to set.time
- the time to associate with the value.Property.getHistoryPolicy()