org.openlca.dataconversion
Class DataFormat

java.lang.Object
  extended by org.openlca.dataconversion.DataFormat

public class DataFormat
extends java.lang.Object

Version:
1.0
Author:
Michael Srocka, GreenDeltaTC, for the openLCA project (www.openlca.org)

Field Summary
static int ECOSPOLD
          Constant type key for the EcoSpold data format.
static int ELCD
          Constant type key for the ELCD data format.
static int ISOTS14048_IMI
          Constant type key for the ISOTS14048/IMI data format.
 
Constructor Summary
DataFormat(int type)
          Creates a new instance of DataFormat.
 
Method Summary
 boolean equals(DataFormat dataformat)
          Returns true if the data format types are equal.
 boolean equals(int type)
          Returns true if the data format types are equal.
 java.lang.String getName()
          Returns the data format name.
static java.lang.String getName(int type)
          Returns the format name for a given type key:
 int getType()
          Returns the data format type key.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ECOSPOLD

public static final int ECOSPOLD
Constant type key for the EcoSpold data format.

See Also:
Constant Field Values

ELCD

public static final int ELCD
Constant type key for the ELCD data format.

See Also:
Constant Field Values

ISOTS14048_IMI

public static final int ISOTS14048_IMI
Constant type key for the ISOTS14048/IMI data format.

See Also:
Constant Field Values
Constructor Detail

DataFormat

public DataFormat(int type)
           throws ConverterException
Creates a new instance of DataFormat.

Parameters:
type - Format type key: 0 = EcoSpold, 1 = ELCD, 2 = ISOTS14048/IMI.
Throws:
ConverterException
Method Detail

getName

public java.lang.String getName()
Returns the data format name.

Returns:
String.

getName

public static final java.lang.String getName(int type)
Returns the format name for a given type key:

Parameters:
type - 0 = EcoSpold, 1 = ELCD, 2 = ISOTS14048/IMI.
Returns:
String.

equals

public boolean equals(DataFormat dataformat)
Returns true if the data format types are equal.

Parameters:
dataformat - Allowed object is DataFormat.
Returns:
{true, false}.

equals

public boolean equals(int type)
Returns true if the data format types are equal.

Parameters:
type - 0 = EcoSpold, 1 = ELCD, 2 = ISOTS14048/IMI.
Returns:
{true, false}.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public int getType()
Returns the data format type key.

Returns:
0 = EcoSpold, 1 = ELCD, 2 = ISOTS14048/IMI.