public class QuantityRangeValue extends SweQuantityRange implements ComparableValue<RangeValue<java.math.BigDecimal>,QuantityRangeValue>
| Constructor and Description |
|---|
QuantityRangeValue(java.math.BigDecimal rangeStart,
java.math.BigDecimal rangeEnd)
Creates a new
QuantityRangeValue. |
QuantityRangeValue(java.math.BigDecimal rangeStart,
java.math.BigDecimal rangeEnd,
java.lang.String unit)
Creates a new
QuantityRangeValue. |
| Modifier and Type | Method and Description |
|---|---|
<X,E extends java.lang.Exception> |
accept(ValueVisitor<X,E> visitor) |
int |
compareTo(QuantityRangeValue o) |
java.lang.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(java.lang.String unit)
Set the unit of measure
|
QuantityRangeValue |
setUnit(UoM unit)
Set the unit of measure object
|
QuantityRangeValue |
setValue(RangeValue<java.math.BigDecimal> value)
Set value
|
java.lang.String |
toString() |
accept, accept, copy, equals, getAxisID, getConstraint, getDataComponentType, getStringValue, getValue, hashCode, isSetAxisID, isSetContstraint, isSetValue, setAxisID, setConstraint, setConstraintcopyValueTo, 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(java.math.BigDecimal rangeStart,
java.math.BigDecimal rangeEnd)
QuantityRangeValue.rangeStart - the start of the rangerangeEnd - the end of the rangepublic QuantityRangeValue(java.math.BigDecimal rangeStart,
java.math.BigDecimal rangeEnd,
java.lang.String unit)
QuantityRangeValue.rangeStart - the start of the rangerangeEnd - the end of the rangeunit - Unit of measurepublic QuantityRangeValue setValue(RangeValue<java.math.BigDecimal> value)
ValuesetValue in interface Value<RangeValue<java.math.BigDecimal>,SweAbstractSimpleType<RangeValue<java.math.BigDecimal>>>setValue in class SweQuantityRangevalue - value to setpublic java.lang.String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic void setUnit(java.lang.String unit)
Valueunit - Unit of measurepublic QuantityRangeValue setUnit(UoM unit)
Valueunit - Unit of measurepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic java.lang.String toString()
toString in class SweAbstractUomType<RangeValue<java.math.BigDecimal>>public <X,E extends java.lang.Exception> X accept(ValueVisitor<X,E> visitor) throws E extends java.lang.Exception
E extends java.lang.Exceptionpublic int compareTo(QuantityRangeValue o)
compareTo in interface java.lang.Comparable<QuantityRangeValue>Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.