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<RangeValue<org.joda.time.DateTime>>
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
ConstructorsConstructorDescriptionconstructorTimeRangeValue(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
Modifier and TypeMethodDescription<X,E extends Exception>
Xaccept(ValueVisitor<X, E> visitor) getUnit()Get the unit of measureGet the unit of measure objectbooleanCheck whether the unit of measure is setvoidSet the unit of measureSet the unit of measure objectsetValue(RangeValue<org.joda.time.DateTime> value) Set valuetoString()Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweTimeRange
accept, accept, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, isSetValue, setConstraint, setConstraint, setStringValueMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUomMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQualityMethods 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, setXmlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncodingMethods inherited from interface org.n52.shetland.ogc.om.values.Value
getValue, isSetValue
-
Constructor Details
-
TimeRangeValue
public TimeRangeValue()constructor -
TimeRangeValue
constructor- Parameters:
value- Measurement value
-
TimeRangeValue
* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
TimeRangeValue
* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
-
Method Details
-
setValue
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
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Parameters:
unit- Unit of measure
-
setUnit
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
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<RangeValue<org.joda.time.DateTime>>- Returns:
- Unit of measure
-
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
- Overrides:
toStringin classSweAbstractUomType<RangeValue<org.joda.time.DateTime>>
-
accept
- Specified by:
acceptin interfaceValue<RangeValue<org.joda.time.DateTime>>- Throws:
E
-