Package org.n52.shetland.ogc.om.values
Class TextValue
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<String>
-
- org.n52.shetland.ogc.swe.simpleType.SweText
-
- org.n52.shetland.ogc.om.values.TextValue
-
- All Implemented Interfaces:
Comparable<SweText>,Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<String>,Value<String,SweAbstractSimpleType<String>>,SweQuality
public class TextValue extends SweText implements Value<String>
Text measurement representation for observation- Since:
- 1.0.0
-
-
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 setbooleanisSetValue()Is the values setvoidsetUnit(String unit)Set the unit of measureTextValuesetUnit(UoM unit)Set the unit of measure objectTextValuesetValue(String value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweText
accept, accept, compareTo, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, setConstraint, setConstraint, setStringValue
-
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, copyValueTo, 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
-
-
-
-
Constructor Detail
-
TextValue
public TextValue()
constructor
-
TextValue
public TextValue(String value)
constructor- Parameters:
value- Measurement value
-
-
Method Detail
-
setValue
public TextValue setValue(String value)
Description copied from interface:ValueSet value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public TextValue 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 classSweAbstractSimpleType<String>
-
isSetValue
public boolean isSetValue()
Description copied from interface:ValueIs the values set- Specified by:
isSetValuein interfaceValue<String>- Specified by:
isSetValuein interfaceValue<String,SweAbstractSimpleType<String>>- Overrides:
isSetValuein classSweText- Returns:
true, if the value is set
-
-