public abstract class AbstractHibernateProcedureDescriptionGeneratorSml extends AbstractHibernateProcedureDescriptionGenerator
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
protected static String |
POSITION_NAME |
static String |
SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY |
static String |
SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY_PROCEDURE |
static String |
SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY_PROCEDURE_OFFERING |
COMMA_JOINER
Constructor and Description |
---|
AbstractHibernateProcedureDescriptionGeneratorSml() |
Modifier and Type | Method and Description |
---|---|
private List<SweCoordinate<?>> |
createCoordinatesForPosition(Object longitude,
Object latitude,
Object altitude)
Create SWE Coordinates for SensorML Position
|
private List<SmlIdentifier> |
createIdentifications(String identifier) |
private SmlIdentifier |
createIdentifier(String identifier) |
private List<SmlIo<?>> |
createInputs(Set<String> observableProperties) |
private SmlIo<?> |
createOutputFromExampleObservation(String procedure,
String observableProperty,
org.hibernate.Session session) |
private SmlIo<?> |
createOutputFromObservationConstellation(String procedure,
String observableProperty,
org.hibernate.Session session) |
private List<SmlIo<?>> |
createOutputs(Procedure procedure,
Set<String> observableProperties,
org.hibernate.Session session)
Create SensorML output list from observableProperties
|
protected SmlPosition |
createPosition(Procedure procedure)
Create SensorML Position from Hibernate procedure entity
|
private SweQuantity |
createSweQuantity(Object value,
String axis,
String uom)
Create SWE Quantity for SWE coordinate
|
protected abstract SweAbstractDataComponent |
getInputComponent(String observableProperty) |
private void |
logTypeNotSupported(Class<?> clazz)
Logger method for class
|
private void |
logTypeNotSupported(String observationType)
Logger method for class
|
private String |
queryUnit(ObservationConstellation oc,
org.hibernate.Session session) |
protected void |
setCommonValues(Procedure procedure,
AbstractProcess abstractProcess,
org.hibernate.Session session)
Set common values to procedure description
|
addNameAndDescription, createDescriptions, createNames, generateProcedureDescription, getCache, getExampleObservation, getLocale, getObservablePropertiesForProcedure, getServiceConfig, hasChildProcedure, isSetLocale, procedureSettings, setCommonData, setLocale
private static final org.slf4j.Logger LOGGER
public static final String SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY
public static final String SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY_PROCEDURE
public static final String SQL_QUERY_GET_UNIT_FOR_OBSERVABLE_PROPERTY_PROCEDURE_OFFERING
protected static final String POSITION_NAME
public AbstractHibernateProcedureDescriptionGeneratorSml()
protected void setCommonValues(Procedure procedure, AbstractProcess abstractProcess, org.hibernate.Session session) throws OwsExceptionReport
procedure
- Hibernate procedure entityabstractProcess
- SensorML processsession
- the sessionOwsExceptionReport
- If an error occursprivate List<SmlIo<?>> createInputs(Set<String> observableProperties) throws OwsExceptionReport
OwsExceptionReport
protected abstract SweAbstractDataComponent getInputComponent(String observableProperty)
private List<SmlIo<?>> createOutputs(Procedure procedure, Set<String> observableProperties, org.hibernate.Session session) throws OwsExceptionReport
procedure
- Hibernate procedure entityobservableProperties
- Properties observed by the procedureOwsExceptionReport
- If an error occursprivate SmlIo<?> createOutputFromObservationConstellation(String procedure, String observableProperty, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
private String queryUnit(ObservationConstellation oc, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
private void logTypeNotSupported(Class<?> clazz)
clazz
- Name of not supported classprivate void logTypeNotSupported(String observationType)
observationType
- Name of not supported classprivate SmlIo<?> createOutputFromExampleObservation(String procedure, String observableProperty, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected SmlPosition createPosition(Procedure procedure)
procedure
- Hibernate procedure entityprivate List<SweCoordinate<?>> createCoordinatesForPosition(Object longitude, Object latitude, Object altitude)
longitude
- Longitude valuelatitude
- Latitude valuealtitude
- Altitude valueprivate SweQuantity createSweQuantity(Object value, String axis, String uom)
value
- Valueaxis
- Axis iduom
- UnitOfMeasureprivate List<SmlIdentifier> createIdentifications(String identifier)
private SmlIdentifier createIdentifier(String identifier)
Copyright © 2012-2015 52north.org. All Rights Reserved.