Package org.n52.shetland.ogc.om.values
Class TimeValue
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<T>
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<org.joda.time.DateTime>
-
- org.n52.shetland.ogc.swe.simpleType.SweTime
-
- org.n52.shetland.ogc.om.values.TimeValue
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<org.joda.time.DateTime>,Value<org.joda.time.DateTime,SweAbstractSimpleType<org.joda.time.DateTime>>
public class TimeValue extends SweTime implements Value<org.joda.time.DateTime>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)StringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectbooleanisSetUnit()Check whether the unit of measure is setvoidsetUnit(String unit)Set the unit of measureTimeValuesetUnit(UoM unit)Set the unit of measure objectTimeValuesetValue(org.joda.time.DateTime value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweTime
accept, accept, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, isSetValue, setConstraint, setConstraint, setStringValue
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUom
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality
-
Methods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
addName, 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, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Methods inherited from interface org.n52.shetland.ogc.om.values.Value
getValue, isSetValue
-
-
-
-
Constructor Detail
-
TimeValue
public TimeValue()
constructor
-
TimeValue
public TimeValue(org.joda.time.DateTime value)
constructor- Parameters:
value- Measurement value
-
TimeValue
public TimeValue(org.joda.time.DateTime value, String unit)* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
TimeValue
public TimeValue(org.joda.time.DateTime value, UoM unit)* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
-
Method Detail
-
setValue
public TimeValue setValue(org.joda.time.DateTime value)
Description copied from interface:ValueSet value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public TimeValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<org.joda.time.DateTime>- Returns:
- Unit of measure
-
isSetUnit
public boolean isSetUnit()
Description copied from interface:ValueCheck whether the unit of measure is set
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractUomType<org.joda.time.DateTime>
-
-