use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.
the class FlowExport method addPublication.
private void addPublication(AdminInfo info) {
Publication pub = new Publication();
info.publication = pub;
pub.version = Version.asString(flow.version);
if (baseUri == null)
baseUri = "http://openlca.org/ilcd/resource/";
if (!baseUri.endsWith("/"))
baseUri += "/";
pub.uri = baseUri + "flows/" + flow.refId;
}
use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.
the class FlowPropertyExport method addPublication.
private void addPublication(AdminInfo info) {
Publication pub = new Publication();
info.publication = pub;
pub.version = Version.asString(flowProperty.version);
if (baseUri == null)
baseUri = "http://openlca.org/ilcd/resource/";
if (!baseUri.endsWith("/"))
baseUri += "/";
pub.uri = baseUri + "flowproperties/" + flowProperty.refId;
}
use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.
the class SourceExport method addPublication.
private void addPublication(AdminInfo info) {
Publication pub = new Publication();
info.publication = pub;
pub.version = Version.asString(source.version);
if (baseUri == null)
baseUri = "http://openlca.org/ilcd/resource/";
if (!baseUri.endsWith("/"))
baseUri += "/";
pub.uri = baseUri + "sources/" + source.refId;
}
use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.
the class ActorExport method addPublication.
private void addPublication(AdminInfo info) {
Publication pub = new Publication();
info.publication = pub;
pub.version = Version.asString(actor.version);
if (baseUri == null)
baseUri = "http://openlca.org/ilcd/resource/";
if (!baseUri.endsWith("/"))
baseUri += "/";
pub.uri = baseUri + "contacts/" + actor.refId;
}
use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.
the class FlowUpdateTest method makeFlow.
private Flow makeFlow(String id) {
Flow flow = new Flow();
FlowInfo info = new FlowInfo();
flow.flowInfo = info;
DataSetInfo dataInfo = new DataSetInfo();
dataInfo.uuid = id;
info.dataSetInfo = dataInfo;
FlowName name = new FlowName();
dataInfo.name = name;
LangString.set(name.baseName, "test flow - " + id, "en");
AdminInfo adminInfo = new AdminInfo();
Publication pub = new Publication();
adminInfo.publication = pub;
pub.version = "01.00.000";
flow.adminInfo = adminInfo;
Modelling mav = new Modelling();
flow.modelling = mav;
LCIMethod method = new LCIMethod();
mav.lciMethod = method;
method.flowType = FlowType.ELEMENTARY_FLOW;
return flow;
}
Aggregations