Package org.n52.shetland.ogc.om.values
Class BooleanValue
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<Boolean>
-
- org.n52.shetland.ogc.swe.simpleType.SweBoolean
-
- org.n52.shetland.ogc.om.values.BooleanValue
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<Boolean>,Value<Boolean,SweAbstractSimpleType<Boolean>>
public class BooleanValue extends SweBoolean implements Value<Boolean>
Boolean measurement representation for observation- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description BooleanValue()constructorBooleanValue(Boolean 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 objectbooleanisSetUnit()Check whether the unit of measure is setvoidsetUnit(String unit)Set the unit of measureBooleanValuesetUnit(UoM unit)Set the unit of measure objectBooleanValuesetValue(Boolean value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweBoolean
accept, accept, copy, getDataComponentType, getStringValue, getValue, isSetValue, 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, isSetValue
-
-
-
-
Constructor Detail
-
BooleanValue
public BooleanValue()
constructor
-
BooleanValue
public BooleanValue(Boolean value)
constructor- Parameters:
value- Measurement value
-
-
Method Detail
-
setValue
public BooleanValue setValue(Boolean value)
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<Boolean>- Specified by:
setValuein interfaceValue<Boolean,SweAbstractSimpleType<Boolean>>- Overrides:
setValuein classSweBoolean- Parameters:
value- value to set- Returns:
- this
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure
-
setUnit
public BooleanValue 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<Boolean>- Returns:
- Unit of measure
-
isSetUnit
public boolean isSetUnit()
Description copied from interface:ValueCheck whether the unit of measure is set
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractSimpleType<Boolean>
-
-