Package org.n52.io.response.dataset
Class AbstractValue<T>
java.lang.Object
org.n52.io.response.dataset.AbstractValue<T>
- All Implemented Interfaces:
Serializable,Comparable<AbstractValue<T>>
- Direct Known Subclasses:
BooleanValue,CategoryValue,NumericValue,ProfileValue,RecordValue,TextValue
public abstract class AbstractValue<T>
extends Object
implements Comparable<AbstractValue<T>>, Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractValue(TimeOutput timestart, TimeOutput timeend, T value) AbstractValue(TimeOutput timestamp, T value) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(Map<String, Object> parameterValue) intcompareTo(AbstractValue<T> o) Formats value as string by usingvalueFormatter.org.locationtech.jts.geom.GeometryOptional.getValue()booleanbooleanbooleanbooleanvoidsetDetectionLimit(DetectionLimitOutput detectionLimit) voidsetGeometry(org.locationtech.jts.geom.Geometry geometry) voidsetParameters(Set<Map<String, Object>> parameters) voidsetResultTime(TimeOutput resultTime) voidsetTimestamp(TimeOutput timestamp) voidsetTimestart(TimeOutput timestart) Optional.voidsetValidTime(AbstractValue<T>.ValidTime validTime) voidsetValidTime(TimeOutput start, TimeOutput end) voidvoidsetValueFormatter(ValueFormatter<T> valueFormatter) toString()
-
Constructor Details
-
AbstractValue
public AbstractValue() -
AbstractValue
-
AbstractValue
-
-
Method Details
-
getTimestamp
- Returns:
- the timestamp/timeend when
valuehas been observed.
-
setTimestamp
- Parameters:
timestamp- sets the timestamp/timeend whenvaluehas been observed.
-
isSetTimestamp
public boolean isSetTimestamp() -
getTimeend
-
isSetTimeend
public boolean isSetTimeend() -
getTimestart
Optional.- Returns:
- the timestart when
valuehas been observed.
-
setTimestart
Optional.- Parameters:
timestart- the timestart whenvaluehas been observed.
-
isNoDataValue
public boolean isNoDataValue() -
getValue
-
setValue
-
setValueFormatter
-
getFormattedValue
Formats value as string by usingvalueFormatter. If no formatter has been setObject.toString()is being used. Otherwisenullis returned.- Returns:
- the
valueformatted as string ornullif value isnull
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry() -
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geometry) -
isSetGeometry
public boolean isSetGeometry() -
setParameters
-
getParameters
-
addParameter
-
getValidTime
-
setValidTime
-
setValidTime
-
getResultTime
-
setResultTime
-
getDetectionLimit
-
setDetectionLimit
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
toString
-