public abstract class AbstractValue extends AbstractObservationTime implements HibernateRelations.HasIdentifier, HibernateRelations.HasCodespace, HibernateRelations.HasUnit, HibernateRelations.HasDescription
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private Unit |
unit |
IDENTIFIER
CODESPACE
UNIT
DESCRIPTION
DELETED
OFFERINGS
PHENOMENON_TIME_END, PHENOMENON_TIME_START
RESULT_TIME
VALID_TIME_END, VALID_TIME_START
ID
SAMPLING_GEOMETRY
NAME
CODESPACE
Constructor and Description |
---|
AbstractValue() |
createPhenomenonTime, getDeleted, getObservationId, getOfferings, getPhenomenonTimeEnd, getPhenomenonTimeStart, getResultTime, getSamplingGeometry, getValidTimeEnd, getValidTimeStart, hasSamplingGeometry, isDeleted, isSetValidTime, setDeleted, setObservationId, setOfferings, setPhenomenonTimeEnd, setPhenomenonTimeStart, setResultTime, setSamplingGeometry, setValidTimeEnd, setValidTimeStart
getCodespace, getCodespaceName, getDescription, getIdentifier, getName, isSetCodespace, isSetCodespaceName, isSetDescription, isSetIdentifier, isSetName, setCodespace, setCodespaceName, setDescription, setIdentifier, setName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, isSetIdentifier, setIdentifier
getCodespace, isSetCodespace, setCodespace
getDescription, isSetDescription, setDescription
private static final long serialVersionUID
private Unit unit
public Unit getUnit()
getUnit
in interface HibernateRelations.HasUnit
public void setUnit(Unit unit)
setUnit
in interface HibernateRelations.HasUnit
public boolean isSetUnit()
HibernateRelations.HasUnit
isSetUnit
in interface HibernateRelations.HasUnit
true
, if unit is setpublic abstract OmObservation mergeValueToObservation(OmObservation observation, String responseFormat) throws OwsExceptionReport
OwsExceptionReport
protected abstract void addValueSpecificDataToObservation(OmObservation observation, String responseFormat) throws OwsExceptionReport
OwsExceptionReport
public abstract void addValueSpecificDataToObservation(OmObservation observation, org.hibernate.Session session, SwesExtensions swesExtensions) throws OwsExceptionReport
OwsExceptionReport
protected abstract void addObservationValueToObservation(OmObservation observation, Value<?> value, String responseFormat) throws OwsExceptionReport
OwsExceptionReport
public abstract String getDiscriminator()
public TimeValuePair createTimeValuePairFrom() throws OwsExceptionReport
TimeValuePair
from AbstractValue
abstractValue
- AbstractValue
to create TimeValuePair
fromTimeValuePair
OwsExceptionReport
- If an error occurs when getting the valuepublic OmObservation addValuesToObservation(OmObservation observation, String responseFormat) throws OwsExceptionReport
AbstractValue
data to OmObservation
observation
- OmObservation
to add dataresponseFormat
- OwsExceptionReport
- If an error occurs when getting the valueprotected TimeInstant createResutlTime(Date date)
Date
date
- Date
to create result time fromprotected TimePeriod createValidTime(Date start, Date end)
TimePeriod
from Date
sstart
- Start Date
end
- End Date
TimePeriod
or null if Date
s are nullprotected Value<?> getValueFrom(AbstractValue abstractValue) throws OwsExceptionReport
Value
from AbstractValue
abstractValue
- AbstractValue
to get Value
fromValue
or null if the concrete AbstractValue
is
not supportedOwsExceptionReport
- If an error occurs when creating
SweDataArrayValue
protected NamedValue<?> createSpatialFilteringProfileParameter(com.vividsolutions.jts.geom.Geometry samplingGeometry) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.