public class CategoryValue extends SweCategory implements Value<String>
| Constructor and Description |
|---|
CategoryValue(String value)
constructor
|
CategoryValue(String value,
String unit)
* constructor
|
CategoryValue(String value,
UoM unit)
* constructor
|
| Modifier and Type | Method and Description |
|---|---|
<X,E extends Exception> |
accept(ValueVisitor<X,E> visitor) |
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
|
void |
setUnit(String unit)
Set the unit of measure
|
CategoryValue |
setUnit(UoM unit)
Set the unit of measure object
|
CategoryValue |
setValue(String value)
Set value
|
String |
toString() |
accept, accept, copy, getCodeSpace, getConstraint, getDataComponentType, getStringValue, getValue, isSetCodeSpace, isSetContstraint, isSetValue, setCodeSpace, setConstraint, setConstraint, setStringValuecopyValueTo, getUom, getUomObject, isSetUom, setUom, setUomcloneQuality, equals, getQuality, hashCode, isSetQuality, setQualityaddName, 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, setXmlclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, isSetValueisSetDefaultElementEncodingpublic CategoryValue(String value)
value - Measurement valuepublic CategoryValue(String value, String unit)
value - Measurement valueunit - Unit of measurepublic CategoryValue setValue(String value)
ValuesetValue in interface Value<String,SweAbstractSimpleType<String>>setValue in class SweCategoryvalue - value to setpublic void setUnit(String unit)
Valueunit - Unit of measurepublic CategoryValue setUnit(UoM unit)
Valueunit - Unit of measurepublic String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic String toString()
toString in class SweCategorypublic <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
E extends ExceptionCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.