Search in sources :

Example 1 with EnvironmentalMonitoringActivity

use of org.n52.shetland.inspire.ef.EnvironmentalMonitoringActivity in project arctic-sea by 52North.

the class AbstractMonitoringFeatureEncoder method setInvolvedIn.

private void setInvolvedIn(AbstractMonitoringFeatureType amft, AbstractMonitoringFeature abstractMonitoringFeature) throws EncodingException {
    if (abstractMonitoringFeature.isSetInvolvedIn()) {
        for (EnvironmentalMonitoringActivity environmentalMonitoringActivity : abstractMonitoringFeature.getInvolvedIn()) {
            if (environmentalMonitoringActivity.isSetSimpleAttrs()) {
                InvolvedIn ii = amft.addNewInvolvedIn();
                ii.setHref(environmentalMonitoringActivity.getSimpleAttrs().getHref());
                if (environmentalMonitoringActivity.getSimpleAttrs().isSetTitle()) {
                    ii.setTitle(environmentalMonitoringActivity.getSimpleAttrs().getTitle());
                }
            } else {
                amft.addNewInvolvedIn().addNewEnvironmentalMonitoringActivity().set(encodeEF(environmentalMonitoringActivity));
            }
        }
    }
}
Also used : EnvironmentalMonitoringActivity(org.n52.shetland.inspire.ef.EnvironmentalMonitoringActivity) InvolvedIn(eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringFeatureType.InvolvedIn)

Aggregations

InvolvedIn (eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringFeatureType.InvolvedIn)1 EnvironmentalMonitoringActivity (org.n52.shetland.inspire.ef.EnvironmentalMonitoringActivity)1