use of eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringObjectType.Narrower in project arctic-sea by 52North.
the class AbstractMonitoringObjectEncoder method setNarrower.
private void setNarrower(AbstractMonitoringObjectType amot, AbstractMonitoringObject abstractMonitoringObject) throws EncodingException {
if (abstractMonitoringObject.isSetNarrower()) {
for (Hierarchy narrower : abstractMonitoringObject.getNarrower()) {
if (narrower.isSetSimpleAttrs()) {
Narrower n = amot.addNewNarrower();
n.setHref(narrower.getSimpleAttrs().getHref());
if (narrower.getSimpleAttrs().isSetTitle()) {
n.setTitle(narrower.getSimpleAttrs().getTitle());
}
} else {
amot.addNewNarrower().addNewHierarchy().set(encodeEF(narrower));
}
}
}
}