use of org.openlca.io.ilcd.output.ActorExport in project olca-modules by GreenDelta.
the class ILCDExport method tryExport.
private void tryExport(RootEntity component) throws Exception {
if (component instanceof ImpactMethod) {
ImpactMethodExport export = new ImpactMethodExport(config);
export.run((ImpactMethod) component);
} else if (component instanceof ProductSystem) {
SystemExport export = new SystemExport(config);
export.run((ProductSystem) component);
} else if (component instanceof Process) {
ProcessExport export = new ProcessExport(config);
export.run((Process) component);
} else if (component instanceof Flow) {
FlowExport flowExport = new FlowExport(config);
flowExport.run((Flow) component);
} else if (component instanceof FlowProperty) {
FlowPropertyExport export = new FlowPropertyExport(config);
export.run((FlowProperty) component);
} else if (component instanceof UnitGroup) {
UnitGroupExport export = new UnitGroupExport(config);
export.run((UnitGroup) component);
} else if (component instanceof Actor) {
ActorExport export = new ActorExport(config);
export.run((Actor) component);
} else if (component instanceof Source) {
SourceExport export = new SourceExport(config);
export.run((Source) component);
}
}
use of org.openlca.io.ilcd.output.ActorExport in project olca-modules by GreenDelta.
the class ILCDImportExportTest method testA_Contact.
@Test
public void testA_Contact() {
var id = "177ca340-ffa2-11da-92e3-0800200c9a66";
var contact = importConf.store().get(Contact.class, id);
var actor = new ContactImport(importConf).run(contact);
assertEquals(id, actor.refId);
new ActorExport(exportConf).run(actor);
assertTrue(exportConf.store.contains(Contact.class, id));
}
Aggregations