Package org.n52.shetland.ogc.om.values
Class CountValue
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<Integer>
-
- org.n52.shetland.ogc.swe.simpleType.SweCount
-
- org.n52.shetland.ogc.om.values.CountValue
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<Integer>,Value<Integer,SweAbstractSimpleType<Integer>>
public class CountValue extends SweCount implements Value<Integer>
Count measurement representation for observation- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CountValue()constructorCountValue(Integer value)constructor
-
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 objectvoidsetUnit(String unit)Set the unit of measureCountValuesetUnit(UoM unit)Set the unit of measure objectCountValuesetValue(Integer value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweCount
accept, accept, copy, getConstraint, getDataComponentType, getStringValue, getValue, increaseCount, increaseCount, isSetContstraint, isSetValue, 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
-
Methods inherited from interface org.n52.shetland.ogc.om.values.Value
getValue, isSetUnit, isSetValue
-
-
-
-
Constructor Detail
-
CountValue
public CountValue()
constructor
-
CountValue
public CountValue(Integer value)
constructor- Parameters:
value- Measurement value
-
-
Method Detail
-
setValue
public CountValue setValue(Integer value)
Description copied from interface:ValueSet value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public CountValue 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<Integer>- Returns:
- Unit of measure
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractSimpleType<Integer>
-
-