Package org.n52.shetland.ogc.om.values
Class QuantityRangeValue
java.lang.Object
org.n52.shetland.ogc.swe.SweAbstractDataComponent
org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<RangeValue<BigDecimal>>
org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<RangeValue<BigDecimal>>
org.n52.shetland.ogc.swe.simpleType.SweQuantityRange
org.n52.shetland.ogc.om.values.QuantityRangeValue
- All Implemented Interfaces:
Comparable<QuantityRangeValue>,Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,ComparableValue<RangeValue<BigDecimal>,,QuantityRangeValue> Value<RangeValue<BigDecimal>>,Value<RangeValue<BigDecimal>,,SweAbstractSimpleType<RangeValue<BigDecimal>>> SweQuality
public class QuantityRangeValue
extends SweQuantityRange
implements ComparableValue<RangeValue<BigDecimal>,QuantityRangeValue>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newQuantityRangeValue.QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd) Creates a newQuantityRangeValue.QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd, String unit) Creates a newQuantityRangeValue. -
Method Summary
Modifier and TypeMethodDescription<X,E extends Exception>
Xaccept(ValueVisitor<X, E> visitor) intgetUnit()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<BigDecimal> value) Set valuetoString()Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweQuantityRange
accept, accept, copy, equals, getAxisID, getConstraint, getDataComponentType, getStringValue, getValue, hashCode, isSetAxisID, isSetContstraint, isSetValue, setAxisID, 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, getQuality, 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
-
QuantityRangeValue
public QuantityRangeValue()Creates a newQuantityRangeValue. -
QuantityRangeValue
Creates a newQuantityRangeValue.- Parameters:
rangeStart- the start of the rangerangeEnd- the end of the range
-
QuantityRangeValue
Creates a newQuantityRangeValue.- Parameters:
rangeStart- the start of the rangerangeEnd- the end of the rangeunit- Unit of measure
-
-
Method Details
-
setValue
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<RangeValue<BigDecimal>>- Specified by:
setValuein interfaceValue<RangeValue<BigDecimal>,SweAbstractSimpleType<RangeValue<BigDecimal>>> - Overrides:
setValuein classSweQuantityRange- Parameters:
value- value to set- Returns:
- this
-
getUnit
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<RangeValue<BigDecimal>>- Returns:
- Unit of measure
-
getUnitObject
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<RangeValue<BigDecimal>>- Returns:
- Unit of measure
-
setUnit
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<RangeValue<BigDecimal>>- Parameters:
unit- Unit of measure
-
setUnit
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<RangeValue<BigDecimal>>- Parameters:
unit- Unit of measure
-
isSetUnit
public boolean isSetUnit()Description copied from interface:ValueCheck whether the unit of measure is set- Specified by:
isSetUnitin interfaceValue<RangeValue<BigDecimal>>- Returns:
true, if unit of measure is set
-
toString
- Overrides:
toStringin classSweAbstractUomType<RangeValue<BigDecimal>>
-
accept
- Specified by:
acceptin interfaceValue<RangeValue<BigDecimal>>- Throws:
E
-
compareTo
- Specified by:
compareToin interfaceComparable<QuantityRangeValue>
-