Package org.n52.shetland.ogc.om.values
Class CategoryValue
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<String>,Value<String,SweAbstractSimpleType<String>>,SweQuality
public class CategoryValue extends SweCategory implements Value<String>
Category measurement representation for observation- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CategoryValue()constructorCategoryValue(String value)constructorCategoryValue(String value, String unit)* constructorCategoryValue(String value, UoM unit)* constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)StringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectbooleanisSetUnit()Check whether the unit of measure is setvoidsetUnit(String unit)Set the unit of measureCategoryValuesetUnit(UoM unit)Set the unit of measure objectCategoryValuesetValue(String value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweCategory
accept, accept, copy, getCodeSpace, getConstraint, getDataComponentType, getStringValue, getValue, isSetCodeSpace, isSetContstraint, isSetValue, setCodeSpace, setConstraint, setConstraint, setStringValue
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUom
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality
-
Methods 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, 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.om.values.Value
getValue, isSetValue
-
-
-
-
Constructor Detail
-
CategoryValue
public CategoryValue()
constructor
-
CategoryValue
public CategoryValue(String value)
constructor- Parameters:
value- Measurement value
-
CategoryValue
public CategoryValue(String value, String unit)
* constructor- Parameters:
value- Measurement valueunit- Unit of measure
-
-
Method Detail
-
setValue
public CategoryValue setValue(String value)
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<String>- Specified by:
setValuein interfaceValue<String,SweAbstractSimpleType<String>>- Overrides:
setValuein classSweCategory- Parameters:
value- value to set- Returns:
- this
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public CategoryValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<String>- Returns:
- Unit of measure
-
isSetUnit
public boolean isSetUnit()
Description copied from interface:ValueCheck whether the unit of measure is set
-
toString
public String toString()
- Overrides:
toStringin classSweCategory
-
-