Package org.n52.shetland.ogc.om.values
Class SweDataArrayValue
- java.lang.Object
-
- org.n52.shetland.ogc.om.values.SweDataArrayValue
-
- All Implemented Interfaces:
MultiValue<SweDataArray>,Value<SweDataArray>
public class SweDataArrayValue extends Object implements MultiValue<SweDataArray>
Multi value representing a SweDataArray for observations- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SweDataArrayValue()SweDataArrayValue(SweDataArray value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)booleanaddBlock(List<String> blockOfTokensToAddAtTheEnd)TimegetPhenomenonTime()Get the phenomenon time for the multiple valuesStringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectSweDataArraygetValue()Get the measurement valuebooleanisSetValue()Check whether the value is setvoidsetUnit(String unit)Set the unit of measureSweDataArrayValuesetUnit(UoM unit)Set the unit of measure objectSweDataArrayValuesetValue(SweDataArray value)Set the measurment valueStringtoString()
-
-
-
Constructor Detail
-
SweDataArrayValue
public SweDataArrayValue()
-
SweDataArrayValue
public SweDataArrayValue(SweDataArray value)
-
-
Method Detail
-
setValue
public SweDataArrayValue setValue(SweDataArray value)
Description copied from interface:ValueSet the measurment value- Specified by:
setValuein interfaceMultiValue<SweDataArray>- Specified by:
setValuein interfaceValue<SweDataArray>- Parameters:
value- Value to set
-
getValue
public SweDataArray getValue()
Description copied from interface:ValueGet the measurement value- Specified by:
getValuein interfaceValue<SweDataArray>- Returns:
- Measurement value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<SweDataArray>- Parameters:
unit- Unit of measure
-
setUnit
public SweDataArrayValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<SweDataArray>- Parameters:
unit- Unit of measure
-
getUnit
public String getUnit()
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<SweDataArray>- Returns:
- Unit of measure
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<SweDataArray>- Returns:
- Unit of measure
-
addBlock
public boolean addBlock(List<String> blockOfTokensToAddAtTheEnd)
- Parameters:
blockOfTokensToAddAtTheEnd-- Returns:
- true (as specified by
Collection.add(E))
false if block could not be added
-
getPhenomenonTime
public Time getPhenomenonTime()
Description copied from interface:MultiValueGet the phenomenon time for the multiple values- Specified by:
getPhenomenonTimein interfaceMultiValue<SweDataArray>- Returns:
- Phenomenon time
-
isSetValue
public boolean isSetValue()
Description copied from interface:ValueCheck whether the value is set- Specified by:
isSetValuein interfaceValue<SweDataArray>- Returns:
true, if value is set
-
accept
public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Specified by:
acceptin interfaceValue<SweDataArray>- Throws:
E extends Exception
-
-