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<T>
-
- 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
Constructors Constructor Description QuantityRangeValue()Creates a newQuantityRangeValue.QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd)Creates a newQuantityRangeValue.QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd, String unit)Creates a newQuantityRangeValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)intcompareTo(QuantityRangeValue o)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 measureQuantityRangeValuesetUnit(UoM unit)Set the unit of measure objectQuantityRangeValuesetValue(RangeValue<BigDecimal> value)Set valueStringtoString()-
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, 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, getQuality, 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
-
QuantityRangeValue
public QuantityRangeValue()
Creates a newQuantityRangeValue.
-
QuantityRangeValue
public QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd)
Creates a newQuantityRangeValue.- Parameters:
rangeStart- the start of the rangerangeEnd- the end of the range
-
QuantityRangeValue
public QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd, String unit)
Creates a newQuantityRangeValue.- Parameters:
rangeStart- the start of the rangerangeEnd- the end of the rangeunit- Unit of measure
-
-
Method Detail
-
setValue
public QuantityRangeValue setValue(RangeValue<BigDecimal> value)
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
public String getUnit()
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<RangeValue<BigDecimal>>- Returns:
- Unit of measure
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<RangeValue<BigDecimal>>- Returns:
- Unit of measure
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<RangeValue<BigDecimal>>- Parameters:
unit- Unit of measure
-
setUnit
public QuantityRangeValue setUnit(UoM unit)
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
public String toString()
- Overrides:
toStringin classSweAbstractUomType<RangeValue<BigDecimal>>
-
accept
public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Specified by:
acceptin interfaceValue<RangeValue<BigDecimal>>- Throws:
E extends Exception
-
compareTo
public int compareTo(QuantityRangeValue o)
- Specified by:
compareToin interfaceComparable<QuantityRangeValue>
-
-