use of net.opengis.sosgda.x10.DataAvailabilityMemberType in project arctic-sea by 52North.
the class GetDataAvailabilityResponseDecoder method parseDataAvalabilities.
private Collection<DataAvailability> parseDataAvalabilities(GetDataAvailabilityResponseType response) throws DecodingException {
List<DataAvailability> availabilities = Lists.newArrayList();
if (CollectionHelper.isNotNullOrEmpty(response.getDataAvailabilityMemberArray())) {
Map<String, TimePeriod> periods = Maps.newHashMap();
for (DataAvailabilityMemberType damt : response.getDataAvailabilityMemberArray()) {
ReferenceType procedure = decodeXmlElement(damt.getProcedure());
ReferenceType featureOfInterest = decodeXmlElement(damt.getFeatureOfInterest());
ReferenceType observedProperty = decodeXmlElement(damt.getObservedProperty());
TimePeriod phenomenonTime = getPhenomenonTime(damt.getPhenomenonTime().getAbstractTimeObject(), damt.getPhenomenonTime().getHref(), periods);
availabilities.add(new DataAvailability(procedure, observedProperty, featureOfInterest, null, phenomenonTime));
}
}
return availabilities;
}
Aggregations