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
Text measurement representation for observation
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X,E extends Exception>
Xaccept(ValueVisitor<X, E> visitor) getUnit()Get the unit of measureGet the unit of measure objectbooleanCheck whether the unit of measure is setbooleanIs the values setvoidSet the unit of measureSet the unit of measure objectSet valuetoString()Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweText
accept, accept, compareTo, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, setConstraint, setConstraint, setStringValueMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQualityMethods 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, 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
-
TextValue
public TextValue()constructor -
TextValue
constructor- Parameters:
value- Measurement value
-
TextValue
-
-
Method Details
-
setValue
Description copied from interface:ValueSet value -
setUnit
Description copied from interface:ValueSet the unit of measure -
setUnit
Description copied from interface:ValueSet the unit of measure object -
getUnit
Description copied from interface:ValueGet the unit of measure -
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
- 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
-
accept
-