Package org.n52.shetland.ogc.om.values
Class TimeRangeValue
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<T>
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<RangeValue<org.joda.time.DateTime>>
-
- org.n52.shetland.ogc.swe.simpleType.SweTimeRange
-
- org.n52.shetland.ogc.om.values.TimeRangeValue
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<RangeValue<org.joda.time.DateTime>>,Value<RangeValue<org.joda.time.DateTime>,SweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>>
public class TimeRangeValue extends SweTimeRange implements Value<RangeValue<org.joda.time.DateTime>>
TODO JavaDoc
-
-
Constructor Summary
Constructors Constructor Description TimeRangeValue()constructorTimeRangeValue(RangeValue<org.joda.time.DateTime> value)constructorTimeRangeValue(RangeValue<org.joda.time.DateTime> value, String unit)* constructorTimeRangeValue(RangeValue<org.joda.time.DateTime> value, UoM unit)* constructor
-
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 measureTimeRangeValuesetUnit(UoM unit)Set the unit of measure objectTimeRangeValuesetValue(RangeValue<org.joda.time.DateTime> value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweTimeRange
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
-
TimeRangeValue
public TimeRangeValue()
constructor
-
TimeRangeValue
public TimeRangeValue(RangeValue<org.joda.time.DateTime> value)
constructor- Parameters:
value- Measurement value
-
TimeRangeValue
public TimeRangeValue(RangeValue<org.joda.time.DateTime> value, String unit)
* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
TimeRangeValue
public TimeRangeValue(RangeValue<org.joda.time.DateTime> value, UoM unit)
* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
-
Method Detail
-
setValue
public TimeRangeValue setValue(RangeValue<org.joda.time.DateTime> value)
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<RangeValue<org.joda.time.DateTime>>- Specified by:
setValuein interfaceValue<RangeValue<org.joda.time.DateTime>,SweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>>- Overrides:
setValuein classSweTimeRange- Parameters:
value- value to set- Returns:
- this
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Parameters:
unit- Unit of measure
-
setUnit
public TimeRangeValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Parameters:
unit- Unit of measure
-
getUnit
public String getUnit()
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Returns:
- Unit of measure
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<RangeValue<org.joda.time.DateTime>>- Returns:
- Unit of measure
-
isSetUnit
public boolean isSetUnit()
Description copied from interface:ValueCheck whether the unit of measure is set- Specified by:
isSetUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Returns:
true, if unit of measure is set
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractUomType<RangeValue<org.joda.time.DateTime>>
-
accept
public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Specified by:
acceptin interfaceValue<RangeValue<org.joda.time.DateTime>>- Throws:
E extends Exception
-
-