public class SweQuantity extends SweAbstractUomType<Double> implements SweQuality
| Constructor and Description |
|---|
SweQuantity()
constructor
|
SweQuantity(Double value,
String uom)
constructor
|
SweQuantity(Double value,
UoM uom)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
accept(SweDataComponentVisitor<T,X> visitor) |
<X extends Throwable> |
accept(VoidSweDataComponentVisitor<X> visitor) |
SweQuantity |
copy() |
boolean |
equals(Object obj) |
String |
getAxisID()
Get axis ID
|
Referenceable<SweAllowedValues> |
getConstraint() |
SweConstants.SweDataComponentType |
getDataComponentType() |
String |
getStringValue()
Get value as
String |
Double |
getValue()
Get value
|
int |
hashCode() |
boolean |
isSetAxisID() |
boolean |
isSetContstraint() |
boolean |
isSetValue()
Is the values set
|
SweQuantity |
setAxisID(String axisID)
set axis ID
|
void |
setConstraint(Referenceable<SweAllowedValues> constraint) |
void |
setConstraint(SweAllowedValues constraint) |
SweQuantity |
setQuality(Collection<SweQuality> quality)
Set quality information
|
SweQuantity |
setUom(String uom)
Set unit of measurement
|
SweQuantity |
setValue(Double value)
Set value
|
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 String getAxisID()
public SweQuantity setAxisID(String axisID)
axisID - the axisID to setpublic Double getValue()
ValuegetValue in interface Value<Double,SweAbstractSimpleType<Double>>public SweQuantity setValue(Double value)
ValuesetValue in interface Value<Double,SweAbstractSimpleType<Double>>value - value to setpublic int hashCode()
hashCode in class SweAbstractSimpleType<Double>public boolean equals(Object obj)
equals in class SweAbstractSimpleType<Double>public String getStringValue()
ValueStringgetStringValue in interface Value<Double,SweAbstractSimpleType<Double>>Stringpublic boolean isSetValue()
ValueisSetValue in interface Value<Double,SweAbstractSimpleType<Double>>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<Double>uom - the uom to setpublic SweQuantity setQuality(Collection<SweQuality> quality)
SweAbstractSimpleTypesetQuality in class SweAbstractSimpleType<Double>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–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.