use of eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringFeatureType.InvolvedIn 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));
}
}
}
}
Aggregations