use of eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringObjectType.Supersedes in project arctic-sea by 52North.
the class AbstractMonitoringObjectEncoder method setSupersedes.
private void setSupersedes(AbstractMonitoringObjectType amot, AbstractMonitoringObject abstractMonitoringObject) throws EncodingException {
if (abstractMonitoringObject.isSetSupersedes()) {
for (AbstractMonitoringObject supersedes : abstractMonitoringObject.getSupersedes()) {
if (supersedes.isSetSimpleAttrs()) {
Supersedes s = amot.addNewSupersedes();
s.setHref(supersedes.getSimpleAttrs().getHref());
if (supersedes.getSimpleAttrs().isSetTitle()) {
s.setTitle(supersedes.getSimpleAttrs().getTitle());
}
} else {
amot.addNewSupersedes().addNewAbstractMonitoringObject().set(encodeEF(supersedes));
}
}
}
}
Aggregations