public class TextValue extends SweText implements Value<java.lang.String>
| Constructor and Description |
|---|
TextValue(java.lang.String value)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<X,E extends java.lang.Exception> |
accept(ValueVisitor<X,E> visitor) |
java.lang.String |
getUnit()
Get the unit of measure
|
UoM |
getUnitObject()
Get the unit of measure object
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
boolean |
isSetValue()
Is the values set
|
void |
setUnit(java.lang.String unit)
Set the unit of measure
|
TextValue |
setUnit(UoM unit)
Set the unit of measure object
|
TextValue |
setValue(java.lang.String value)
Set value
|
java.lang.String |
toString() |
accept, accept, compareTo, copy, getConstraint, getDataComponentType, getStringValue, getValue, isSetContstraint, setConstraint, setConstraintcloneQuality, equals, getQuality, hashCode, isSetQuality, setQualityaddName, 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, setXmlclone, finalize, getClass, notify, notifyAll, wait, wait, waitisSetDefaultElementEncodingpublic TextValue(java.lang.String value)
value - Measurement valuepublic TextValue setValue(java.lang.String value)
ValuesetValue in interface Value<java.lang.String,SweAbstractSimpleType<java.lang.String>>setValue in class SweTextvalue - value to setpublic void setUnit(java.lang.String unit)
Valueunit - Unit of measurepublic TextValue setUnit(UoM unit)
Valueunit - Unit of measurepublic java.lang.String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic java.lang.String toString()
toString in class SweAbstractSimpleType<java.lang.String>public boolean isSetValue()
ValueisSetValue in interface Value<java.lang.String,SweAbstractSimpleType<java.lang.String>>isSetValue in class SweTexttrue, if the value is setpublic <X,E extends java.lang.Exception> X accept(ValueVisitor<X,E> visitor) throws E extends java.lang.Exception
E extends java.lang.ExceptionCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.