Search in sources :

Example 1 with Supersedes

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));
            }
        }
    }
}
Also used : AbstractMonitoringObject(org.n52.shetland.inspire.ef.AbstractMonitoringObject) Supersedes(eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringObjectType.Supersedes)

Aggregations

Supersedes (eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringObjectType.Supersedes)1 AbstractMonitoringObject (org.n52.shetland.inspire.ef.AbstractMonitoringObject)1