Class SweAbstractUomType<T>
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<T>
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<T>
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<T,SweAbstractSimpleType<T>>
- Direct Known Subclasses:
SweCategory,SweCategoryRange,SweQuantity,SweQuantityRange,SweTime,SweTimeRange
public abstract class SweAbstractUomType<T> extends SweAbstractSimpleType<T>
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SweAbstractUomType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SweAbstractDataComponentcopyValueTo(SweAbstractDataComponent copy)Copies all values from thisSweAbstractDataComponentto the passedStringgetUom()Get unit of measurementUoMgetUomObject()Get unit of measurement objectbooleanisSetUom()SweAbstractUomType<T>setUom(String uom)Set unit of measurementSweAbstractUomType<T>setUom(UoM uom)Set unit of measurementStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality, setStringValue
-
Methods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
accept, accept, addName, addName, addName, getDataComponentType, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Methods inherited from interface org.n52.shetland.ogc.ows.extension.Value
getStringValue, getValue, isSetValue, setValue
-
-
-
-
Method Detail
-
getUom
public String getUom()
Get unit of measurement- Returns:
- the uom
-
getUomObject
public UoM getUomObject()
Get unit of measurement object- Returns:
- the uom
-
setUom
public SweAbstractUomType<T> setUom(String uom)
Set unit of measurement- Parameters:
uom- the uom to set- Returns:
- This SweAbstractUomType
-
setUom
public SweAbstractUomType<T> setUom(UoM uom)
Set unit of measurement- Parameters:
uom- the uom to set- Returns:
- This SweAbstractUomType
-
isSetUom
public boolean isSetUom()
- Returns:
- true, if the uom is set and not an empty string,
false, else.
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractSimpleType<T>
-
copyValueTo
public SweAbstractDataComponent copyValueTo(SweAbstractDataComponent copy)
Description copied from class:SweAbstractDataComponentCopies all values from thisSweAbstractDataComponentto the passed- Overrides:
copyValueToin classSweAbstractDataComponent- Parameters:
copy-SweAbstractDataComponentto copy values to- Returns:
- Copy of this
-
-