public boolean isSetObservationtype() { return getObservationType() != null && getObservationType().isSetFormat(); }
@Override public boolean isSetObservationType() { return getObservationType() != null && getObservationType().isSetFormat(); }
public boolean checkObservationType(DatasetEntity dataset, String observationType, Session session) { String hObservationType = dataset.getObservationType() == null ? null : dataset.getObservationType().getFormat(); if (hObservationType == null || hObservationType.isEmpty() || hObservationType.equals("NOT_DEFINED")) { updateSeries(dataset, observationType, session); } else if (!hObservationType.equals(observationType)) { return false; } return true; }
public boolean checkObservationType(DatasetEntity dataset, String observationType, Session session) { String hObservationType = dataset.getObservationType() == null ? null : dataset.getObservationType().getFormat(); if (hObservationType == null || hObservationType.isEmpty() || hObservationType.equals("NOT_DEFINED")) { updateSeries(dataset, observationType, session); } else if (!hObservationType.equals(observationType)) { return false; } return true; }
private boolean isProfileObservation(DatasetEntity observationConstellation) { return observationConstellation.isSetObservationType() && (OmConstants.OBS_TYPE_PROFILE_OBSERVATION .equals(observationConstellation.getObservationType().getFormat()) || GWMLConstants.OBS_TYPE_GEOLOGY_LOG.equals(observationConstellation.getObservationType().getFormat()) || GWMLConstants.OBS_TYPE_GEOLOGY_LOG_COVERAGE .equals(observationConstellation.getObservationType().getFormat())); }
private boolean isProfileObservation(DatasetEntity observationConstellation) { return observationConstellation.isSetObservationType() && (OmConstants.OBS_TYPE_PROFILE_OBSERVATION .equals(observationConstellation.getObservationType().getFormat()) || GWMLConstants.OBS_TYPE_GEOLOGY_LOG.equals(observationConstellation.getObservationType().getFormat()) || GWMLConstants.OBS_TYPE_GEOLOGY_LOG_COVERAGE .equals(observationConstellation.getObservationType().getFormat())); }
private Collection<String> getObservationTypes() { return datasets.stream().filter(d -> d.isSetObservationType()).map(d -> d.getObservationType().getFormat()) .collect(Collectors.toSet()); }
obsConst.setObservationType(hObservation.getDataset().getObservationType().getFormat());
obsConst.setObservationType(hObservation.getDataset().getObservationType().getFormat());
"The requested observationType (%s) is invalid for procedure = %s, observedProperty = %s and offering = %s! The valid observationType is '%s'!", observationType, sosOC.getProcedureIdentifier(), observablePropertyIdentifier, sosOC.getOfferings(), hoc.getObservationType().getFormat());
"The requested observationType (%s) is invalid for procedure = %s, observedProperty = %s and offering = %s! The valid observationType is '%s'!", observationType, sosOC.getProcedureIdentifier(), observablePropertyIdentifier, sosOC.getOfferings(), hoc.getObservationType().getFormat());
String unit = queryUnit(oc, session); if (oc.isSetObservationType()) { final String observationType = oc.getObservationType().getFormat(); if (null != observationType) { switch (observationType) {
for (DatasetEntity obsConst : obsConsts) { if (observationType == null && obsConst.isSetObservationType()) { observationType = obsConst.getObservationType().getFormat();
String unit = queryUnit(oc, session); if (oc.isSetObservationType()) { final String observationType = oc.getObservationType().getFormat(); if (null != observationType) { switch (observationType) {
for (DatasetEntity obsConst : obsConsts) { if (observationType == null && obsConst.isSetObservationType()) { observationType = obsConst.getObservationType().getFormat();
observationType, observation.getDataset().getProcedure().getIdentifier(), dataset.getObservableProperty().getIdentifier(), dataset.getOffering().getIdentifier(), dataset.getObservationType().getFormat());
observationType, observation.getDataset().getProcedure().getIdentifier(), dataset.getObservableProperty().getIdentifier(), dataset.getOffering().getIdentifier(), dataset.getObservationType().getFormat());