public class SweQuantity extends SweAbstractUomType<BigDecimal> implements SweQuality
| Constructor and Description |
|---|
SweQuantity()
constructor
|
SweQuantity(BigDecimal value,
String uom)
constructor
|
SweQuantity(BigDecimal value,
UoM uom)
constructor
|
SweQuantity(Double value,
String uom)
constructor
|
SweQuantity(Double value,
UoM uom)
constructor
|
copyValueTo, getUom, getUomObject, isSetUom, setUom, toStringcloneQuality, getQuality, isSetQualityaddName, 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, waitisSetDefaultElementEncodingpublic SweQuantity()
public SweQuantity(BigDecimal value, String uom)
public SweQuantity(BigDecimal value, UoM uom)
public String getAxisID()
public SweQuantity setAxisID(String axisID)
axisID - the axisID to setpublic BigDecimal getValue()
ValuegetValue in interface Value<BigDecimal,SweAbstractSimpleType<BigDecimal>>public Double getValueAsDouble()
public SweQuantity setValue(BigDecimal value)
ValuesetValue in interface Value<BigDecimal,SweAbstractSimpleType<BigDecimal>>value - value to setpublic SweQuantity setValue(Double value)
public int hashCode()
hashCode in class SweAbstractSimpleType<BigDecimal>public boolean equals(Object obj)
equals in class SweAbstractSimpleType<BigDecimal>public void setStringValue(String s)
setStringValue in class SweAbstractSimpleType<BigDecimal>public String getStringValue()
ValueStringgetStringValue in interface Value<BigDecimal,SweAbstractSimpleType<BigDecimal>>Stringpublic boolean isSetValue()
ValueisSetValue in interface Value<BigDecimal,SweAbstractSimpleType<BigDecimal>>true, if the value is setpublic boolean isSetAxisID()
public Referenceable<SweAllowedValues> getConstraint()
public void setConstraint(SweAllowedValues constraint)
constraint - the constraint to setpublic void setConstraint(Referenceable<SweAllowedValues> constraint)
constraint - the constraint to setpublic boolean isSetContstraint()
public SweConstants.SweDataComponentType getDataComponentType()
getDataComponentType in class SweAbstractDataComponentpublic SweQuantity setUom(String uom)
SweAbstractUomTypesetUom in class SweAbstractUomType<BigDecimal>uom - the uom to setpublic SweQuantity setQuality(Collection<SweQuality> quality)
SweAbstractSimpleTypesetQuality in class SweAbstractSimpleType<BigDecimal>quality - quality information to setpublic <T,X extends Throwable> T accept(SweDataComponentVisitor<T,X> visitor) throws X extends Throwable
accept in class SweAbstractDataComponentX extends Throwablepublic <X extends Throwable> void accept(VoidSweDataComponentVisitor<X> visitor) throws X extends Throwable
accept in class SweAbstractDataComponentX extends Throwablepublic SweQuantity copy()
copy in interface Copyable<SweAbstractDataComponent>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.