public final class PrimitiveParameter extends TemporalParameter implements Serializable
INTERVAL_FACTORY| Constructor and Description |
|---|
PrimitiveParameter(String id,
UniqueId uniqueId)
Creates a parameter with an identification string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PropositionVisitor propositionVisitor)
Performs some processing on a proposition.
|
void |
acceptChecked(PropositionCheckedVisitor propositionCheckedVisitor)
Performs some processing on a proposition that might throw a
checked exception.
|
Granularity |
getGranularity()
Returns the granularity of this parameter's timestamp.
|
Long |
getPosition()
Returns this parameter's timestamp (or other kind of position value).
|
String |
getPositionFormattedLong()
Returns this parameter's timestamp as a long formatted string.
|
String |
getPositionFormattedMedium()
Returns this parameter's timestamp as a medium-length formatted string.
|
String |
getPositionFormattedShort()
Returns this parameter's timestamp as a short formatted string.
|
boolean |
isEqual(Object o)
Determines if the specified object is a
Proposition and has
the same field values as this proposition. |
void |
setGranularity(Granularity granularity)
Sets the granularity of this parameter's timestamp.
|
void |
setPosition(Long pos)
Sets this parameter's timestamp (or other kind of position value).
|
String |
toString() |
getValue, getValueFormatted, readTemporalParameter, setValue, writeTemporalParametergetFinishFormattedLong, getFinishFormattedMedium, getFinishFormattedShort, getInterval, getLengthFormattedLong, getLengthFormattedMedium, getLengthFormattedShort, getStartFormattedLong, getStartFormattedMedium, getStartFormattedShort, readTemporalProposition, setInterval, writeTemporalPropositionaddPropertyChangeListener, addReference, equals, getCreateDate, getDeleteDate, getDownloadDate, getId, getProperty, getPropertyNames, getReferenceNames, getReferences, getSourceSystem, getUniqueId, getUpdateDate, hashCode, initializeAbstractProposition, initializeProperties, initializePropertyChangeSupport, initializeReferences, readAbstractProposition, removePropertyChangeListener, setCreateDate, setDeleteDate, setDownloadDate, setProperty, setReferences, setSourceSystem, setUpdateDate, writeAbstractPropositionclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, getCreateDate, getDeleteDate, getDownloadDate, getId, getProperty, getPropertyNames, getReferenceNames, getReferences, getSourceSystem, getUniqueId, getUpdateDate, removePropertyChangeListenerpublic Long getPosition()
null value means the timestamp is unknown.Long.public void setPosition(Long pos)
pos - a long.public Granularity getGranularity()
Granularity object.public void setGranularity(Granularity granularity)
granularity - a Granularity object.public String getPositionFormattedLong()
String.public String getPositionFormattedMedium()
String.public String getPositionFormattedShort()
String.public String toString()
toString in class TemporalParameterpublic boolean isEqual(Object o)
PropositionProposition and has
the same field values as this proposition.isEqual in interface PropositionisEqual in class TemporalParametero - an Object.true if the specified object is a
Proposition and has the same field values, false
otherwise.public void accept(PropositionVisitor propositionVisitor)
PropositionVisitableaccept in interface PropositionVisitablepublic void acceptChecked(PropositionCheckedVisitor propositionCheckedVisitor) throws ProtempaException
PropositionCheckedVisitableacceptChecked in interface PropositionCheckedVisitableProtempaExceptionCopyright © 2012–2017 Emory University. All rights reserved.