use of eu.europa.ec.inspire.schemas.ef.x40.AbstractMonitoringObjectType.Broader in project arctic-sea by 52North.
the class AbstractMonitoringObjectEncoder method setBroader.
private void setBroader(AbstractMonitoringObjectType amot, AbstractMonitoringObject abstractMonitoringObject) throws EncodingException {
if (abstractMonitoringObject.isSetBroader()) {
Hierarchy broader = abstractMonitoringObject.getBroader();
if (broader.isSetSimpleAttrs()) {
Broader b = amot.addNewBroader();
b.setHref(broader.getSimpleAttrs().getHref());
if (broader.getSimpleAttrs().isSetTitle()) {
b.setTitle(broader.getSimpleAttrs().getTitle());
}
} else {
amot.addNewBroader().addNewHierarchy().set(encodeEF(broader));
}
}
}