public class TimeValue extends SweTime implements Value<org.joda.time.DateTime>
| Constructor and Description |
|---|
TimeValue(org.joda.time.DateTime value)
constructor
|
TimeValue(org.joda.time.DateTime value,
String unit)
* constructor
|
TimeValue(org.joda.time.DateTime value,
UoM unit)
* constructor
|
| Modifier and Type | Method and Description |
|---|---|
<X,E extends Exception> |
accept(ValueVisitor<X,E> visitor) |
String |
getUnit()
Get the unit of measure
|
UoM |
getUnitObject()
Get the unit of measure object
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
void |
setUnit(String unit)
Set the unit of measure
|
TimeValue |
setUnit(UoM unit)
Set the unit of measure object
|
TimeValue |
setValue(org.joda.time.DateTime value)
Set value
|
String |
toString() |
accept, accept, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, isSetValue, setConstraint, setConstraint, setStringValuecopyValueTo, getUom, getUomObject, isSetUom, setUom, setUomcloneQuality, equals, getQuality, hashCode, isSetQuality, setQualityaddName, addName, addName, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXmlclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, isSetValueisSetDefaultElementEncodingpublic TimeValue(org.joda.time.DateTime value)
value - Measurement valuepublic TimeValue(org.joda.time.DateTime value,
String unit)
value - Measurement valueunit - Unit of measurepublic TimeValue(org.joda.time.DateTime value,
UoM unit)
value - Measurement valueunit - Unit of measurepublic TimeValue setValue(org.joda.time.DateTime value)
ValuesetValue in interface Value<org.joda.time.DateTime,SweAbstractSimpleType<org.joda.time.DateTime>>setValue in class SweTimevalue - value to setpublic void setUnit(String unit)
Valueunit - Unit of measurepublic TimeValue setUnit(UoM unit)
Valueunit - Unit of measurepublic String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic String toString()
toString in class SweAbstractUomType<org.joda.time.DateTime>public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
E extends ExceptionCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.