Class SweQuantity
java.lang.Object
org.n52.shetland.ogc.swe.SweAbstractDataComponent
org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<BigDecimal>
org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<BigDecimal>
org.n52.shetland.ogc.swe.simpleType.SweQuantity
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<BigDecimal,,SweAbstractSimpleType<BigDecimal>> SweQuality
- Direct Known Subclasses:
QuantityValue
SOS internal representation of SWE simpleType quantity
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionconstructorSweQuantity(Double value, String uom) constructorSweQuantity(Double value, UoM uom) constructorSweQuantity(BigDecimal value, String uom) constructorSweQuantity(BigDecimal value, UoM uom) constructor -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(SweDataComponentVisitor<T, X> visitor) <X extends Throwable>
voidaccept(VoidSweDataComponentVisitor<X> visitor) copy()booleanGet axis IDGet value asStringgetValue()Get valueinthashCode()booleanbooleanbooleanIs the values setset axis IDvoidsetConstraint(SweAllowedValues constraint) voidsetConstraint(Referenceable<SweAllowedValues> constraint) voidSet unit of measurementsetValue(BigDecimal value) Set valueMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, toStringMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, getQuality, isSetQuality, setQualityMethods 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, setXmlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Constructor Details
-
SweQuantity
public SweQuantity()constructor -
SweQuantity
constructor -
SweQuantity
constructor -
SweQuantity
constructor -
SweQuantity
constructor
-
-
Method Details
-
getAxisID
Get axis ID- Returns:
- the axisID
-
setAxisID
set axis ID- Parameters:
axisID- the axisID to set- Returns:
- This SweQuantity
-
getValue
Description copied from interface:ValueGet value- Specified by:
getValuein interfaceValue<BigDecimal,SweAbstractSimpleType<BigDecimal>> - Returns:
- value
-
getValueAsDouble
-
setValue
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<BigDecimal,SweAbstractSimpleType<BigDecimal>> - Parameters:
value- value to set- Returns:
- this
-
setValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classSweAbstractSimpleType<BigDecimal>
-
equals
- Overrides:
equalsin classSweAbstractSimpleType<BigDecimal>
-
setStringValue
- Specified by:
setStringValuein classSweAbstractSimpleType<BigDecimal>
-
getStringValue
Description copied from interface:ValueGet value asString- Specified by:
getStringValuein interfaceValue<BigDecimal,SweAbstractSimpleType<BigDecimal>> - Returns:
- The value as
String
-
isSetValue
public boolean isSetValue()Description copied from interface:ValueIs the values set- Specified by:
isSetValuein interfaceValue<BigDecimal,SweAbstractSimpleType<BigDecimal>> - Returns:
true, if the value is set
-
isSetAxisID
public boolean isSetAxisID() -
getConstraint
- Returns:
- the constraint
-
setConstraint
- Parameters:
constraint- the constraint to set
-
setConstraint
- Parameters:
constraint- the constraint to set
-
isSetContstraint
public boolean isSetContstraint() -
getDataComponentType
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
setUom
Description copied from class:SweAbstractUomTypeSet unit of measurement- Overrides:
setUomin classSweAbstractUomType<BigDecimal>- Parameters:
uom- the uom to set- Returns:
- This SweAbstractUomType
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
copy
- Specified by:
copyin interfaceCopyable<SweAbstractDataComponent>
-