public class CountValue extends SweCount implements Value<java.lang.Integer>
| Constructor and Description |
|---|
CountValue(java.lang.Integer 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
|
void |
setUnit(java.lang.String unit)
Set the unit of measure
|
CountValue |
setUnit(UoM unit)
Set the unit of measure object
|
CountValue |
setValue(java.lang.Integer value)
Set value
|
java.lang.String |
toString() |
accept, accept, copy, getConstraint, getDataComponentType, getStringValue, getValue, increaseCount, increaseCount, isSetContstraint, isSetValue, 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, waitgetValue, isSetUnit, isSetValueisSetDefaultElementEncodingpublic CountValue(java.lang.Integer value)
value - Measurement valuepublic CountValue setValue(java.lang.Integer value)
ValuesetValue in interface Value<java.lang.Integer,SweAbstractSimpleType<java.lang.Integer>>setValue in class SweCountvalue - value to setpublic void setUnit(java.lang.String unit)
Valueunit - Unit of measurepublic CountValue setUnit(UoM unit)
Valueunit - Unit of measurepublic java.lang.String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic java.lang.String toString()
toString in class SweAbstractSimpleType<java.lang.Integer>public <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.