|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openlca.dataconversion.Converter
public class Converter
Converter implementation.
| Method Summary | |
|---|---|
ConversionData |
convert(LCADocument document,
DataFormat targetFormat,
java.io.File targetDir)
Converts a single LCA document into a given target directory. |
java.util.List<ConversionData> |
convert(java.util.List<LCADocument> documents,
DataFormat targetFormat,
java.io.File targetDir)
Converts a list of LCA documents into a given target directory. |
java.util.List<FlowProperty> |
getFlowProperties()
Returns ELCD flow properties, used to assign to units for data conversion into the ELCD format. |
static Converter |
getInstance()
Returns the singleton instance of the converter. |
LCADocument |
getLCADocument(java.io.File sourceFile)
Returns the LCA document for a given file or throws a ConverterException. |
java.util.List<LCADocument> |
getLCADocuments(java.io.File sourceDir)
Returns LCADocuments from a given directory. |
static LCADocumentOutputter |
getOutputter()
Returns a static singleton instance. |
static org.jdom.input.SAXBuilder |
getSAXBuilder()
Returns a static singleton instance. |
static LCADocumentTransformer |
getTransformer()
Returns a static singleton instance. |
java.util.List<UnitFlowPropertyAssignment> |
getUnitflowPropAssignments()
|
java.util.List<java.lang.String> |
getUnits(java.util.List<LCADocument> documents)
Returns the units of a list of LCA documents. |
void |
setUnitflowPropAssignments(java.util.List<UnitFlowPropertyAssignment> unitflowPropAssignments)
Sets the unit flow property assignments used in the conversion to ELCD. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Converter getInstance()
throws ConverterException
Converter.
ConverterExceptionpublic static org.jdom.input.SAXBuilder getSAXBuilder()
SAXBuilder.public static LCADocumentOutputter getOutputter()
LCADocumentOutputter.public static LCADocumentTransformer getTransformer()
LCADocumentTransformer.
public ConversionData convert(LCADocument document,
DataFormat targetFormat,
java.io.File targetDir)
throws ConverterException
document - Allowed object is LCADocumentBuilder.targetFormat - Allowed object is DataFormat.targetDir - Allowed object is File as directory.
ConverterException
public java.util.List<ConversionData> convert(java.util.List<LCADocument> documents,
DataFormat targetFormat,
java.io.File targetDir)
throws ConverterException
convert(LCADocument, DataFormat, File).
documents - Allowed is a list of LCADocument.targetFormat - Allowed object is DataFormat.targetDir - Allowed object is File as directory.
ConversionData.
ConverterException
public java.util.List<FlowProperty> getFlowProperties()
throws ConverterException
FlowProperty.
ConverterException
public LCADocument getLCADocument(java.io.File sourceFile)
throws ConverterException
ConverterException.
sourceFile - Allowed object is File.
LCADocument.
ConverterException
public java.util.List<LCADocument> getLCADocuments(java.io.File sourceDir)
throws ConverterException
sourceDir - allowed Object is File.
LCADocument.
ConverterExceptionpublic java.util.List<UnitFlowPropertyAssignment> getUnitflowPropAssignments()
UnitFlowPropertyAssignment.public java.util.List<java.lang.String> getUnits(java.util.List<LCADocument> documents)
documents - List of LCADocument allowed.
public void setUnitflowPropAssignments(java.util.List<UnitFlowPropertyAssignment> unitflowPropAssignments)
createElcdFlowDatasets(Document, File, ConversionData).
unitflowPropAssignments - Allowed is a list of UnitFlowPropertyAssignment.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||