Search in sources :

Example 1 with RelatedOffering

use of net.opengis.sosro.x10.RelatedOfferingsType.RelatedOffering in project arctic-sea by 52North.

the class RelatedOfferingTypeDecoder method decode.

@Override
public RelatedOfferings decode(RelatedOfferingsPropertyType rot) throws DecodingException {
    RelatedOfferings relatedOfferings = new RelatedOfferings();
    relatedOfferings.setNamespace(RelatedOfferingConstants.NS_RO).setDefinition(RelatedOfferingConstants.RELATED_OFFERINGS).setIdentifier(RelatedOfferingConstants.RELATED_OFFERINGS);
    for (RelatedOffering relatedOffering : rot.getRelatedOfferings().getRelatedOfferingArray()) {
        relatedOfferings.getValue().add(parseRelatedOffering(relatedOffering));
    }
    return relatedOfferings;
}
Also used : RelatedOffering(net.opengis.sosro.x10.RelatedOfferingsType.RelatedOffering) RelatedOfferings(org.n52.shetland.ogc.sos.ro.RelatedOfferings)

Aggregations

RelatedOffering (net.opengis.sosro.x10.RelatedOfferingsType.RelatedOffering)1 RelatedOfferings (org.n52.shetland.ogc.sos.ro.RelatedOfferings)1