public class QuantityRangeValue extends SweQuantityRange implements ComparableValue<RangeValue<BigDecimal>,QuantityRangeValue>
| Constructor and Description |
|---|
QuantityRangeValue(BigDecimal rangeStart,
BigDecimal rangeEnd)
Creates a new
QuantityRangeValue. |
QuantityRangeValue(BigDecimal rangeStart,
BigDecimal rangeEnd,
String unit)
Creates a new
QuantityRangeValue. |
| Modifier and Type | Method and Description |
|---|---|
<X,E extends Exception> |
accept(ValueVisitor<X,E> visitor) |
int |
compareTo(QuantityRangeValue o) |
String |
getUnit()
Get the unit of measure
|
UoM |
getUnitObject()
Get the unit of measure object
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
void |
setUnit(String unit)
Set the unit of measure
|
QuantityRangeValue |
setUnit(UoM unit)
Set the unit of measure object
|
QuantityRangeValue |
setValue(RangeValue<BigDecimal> value)
Set value
|
String |
toString() |
accept, accept, copy, equals, getAxisID, getConstraint, getDataComponentType, getStringValue, getValue, hashCode, isSetAxisID, isSetContstraint, isSetValue, setAxisID, setConstraint, setConstraint, setStringValuecopyValueTo, getUom, getUomObject, isSetUom, setUom, setUomcloneQuality, getQuality, isSetQuality, setQualityaddName, 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, setXmlclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, isSetValueisSetDefaultElementEncodingpublic QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd)
QuantityRangeValue.rangeStart - the start of the rangerangeEnd - the end of the rangepublic QuantityRangeValue(BigDecimal rangeStart, BigDecimal rangeEnd, String unit)
QuantityRangeValue.rangeStart - the start of the rangerangeEnd - the end of the rangeunit - Unit of measurepublic QuantityRangeValue setValue(RangeValue<BigDecimal> value)
ValuesetValue in interface Value<RangeValue<BigDecimal>,SweAbstractSimpleType<RangeValue<BigDecimal>>>setValue in class SweQuantityRangevalue - value to setpublic String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic void setUnit(String unit)
Valueunit - Unit of measurepublic QuantityRangeValue setUnit(UoM unit)
Valueunit - Unit of measurepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic String toString()
toString in class SweAbstractUomType<RangeValue<BigDecimal>>public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
E extends Exceptionpublic int compareTo(QuantityRangeValue o)
compareTo in interface Comparable<QuantityRangeValue>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.