org.pentaho.di.trans.steps.loadfileinput
Class LoadFileInputField

java.lang.Object
  extended by org.pentaho.di.trans.steps.loadfileinput.LoadFileInputField
All Implemented Interfaces:
Cloneable

public class LoadFileInputField
extends Object
implements Cloneable

Describes a field

Since:
20-06-2007
Author:
Samatar

Field Summary
static int ELEMENT_TYPE_FILECONTENT
           
static int ELEMENT_TYPE_FILESIZE
           
static String[] ElementTypeCode
           
static String[] ElementTypeDesc
           
static String[] trimTypeCode
           
static String[] trimTypeDesc
           
static int TYPE_TRIM_BOTH
           
static int TYPE_TRIM_LEFT
           
static int TYPE_TRIM_NONE
           
static int TYPE_TRIM_RIGHT
           
 
Constructor Summary
LoadFileInputField()
           
LoadFileInputField(Node fnode)
           
LoadFileInputField(String fieldname)
           
 
Method Summary
 Object clone()
           
 void flipRepeated()
           
 String getCurrencySymbol()
           
 String getDecimalSymbol()
           
 int getElementType()
           
static int getElementTypeByCode(String tt)
           
static int getElementTypeByDesc(String tt)
           
 String getElementTypeCode()
           
static String getElementTypeCode(int i)
           
 String getElementTypeDesc()
           
static String getElementTypeDesc(int i)
           
 String getFieldPositionsCode()
           
 String getFormat()
           
 String getGroupSymbol()
           
 int getLength()
           
 String getName()
           
 int getPrecision()
           
 int getTrimType()
           
static int getTrimTypeByCode(String tt)
           
static int getTrimTypeByDesc(String tt)
           
 String getTrimTypeCode()
           
static String getTrimTypeCode(int i)
           
 String getTrimTypeDesc()
           
static String getTrimTypeDesc(int i)
           
 int getType()
           
 String getTypeDesc()
           
 String getXML()
           
 void guess()
           
 boolean isRepeated()
           
 void setCurrencySymbol(String currency_symbol)
           
 void setDecimalSymbol(String decimal_symbol)
           
 void setElementType(int element_type)
           
 void setFormat(String format)
           
 void setGroupSymbol(String group_symbol)
           
 void setLength(int length)
           
 void setName(String fieldname)
           
 void setPrecision(int precision)
           
 void setRepeated(boolean repeat)
           
 void setTrimType(int trimtype)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_TRIM_NONE

public static final int TYPE_TRIM_NONE
See Also:
Constant Field Values

TYPE_TRIM_LEFT

public static final int TYPE_TRIM_LEFT
See Also:
Constant Field Values

TYPE_TRIM_RIGHT

public static final int TYPE_TRIM_RIGHT
See Also:
Constant Field Values

TYPE_TRIM_BOTH

public static final int TYPE_TRIM_BOTH
See Also:
Constant Field Values

trimTypeCode

public static final String[] trimTypeCode

trimTypeDesc

public static final String[] trimTypeDesc

ELEMENT_TYPE_FILECONTENT

public static final int ELEMENT_TYPE_FILECONTENT
See Also:
Constant Field Values

ELEMENT_TYPE_FILESIZE

public static final int ELEMENT_TYPE_FILESIZE
See Also:
Constant Field Values

ElementTypeCode

public static final String[] ElementTypeCode

ElementTypeDesc

public static final String[] ElementTypeDesc
Constructor Detail

LoadFileInputField

public LoadFileInputField(String fieldname)

LoadFileInputField

public LoadFileInputField()

LoadFileInputField

public LoadFileInputField(Node fnode)
                   throws KettleValueException
Throws:
KettleValueException
Method Detail

getXML

public String getXML()

getTrimTypeByCode

public static final int getTrimTypeByCode(String tt)

getElementTypeByCode

public static final int getElementTypeByCode(String tt)

getTrimTypeByDesc

public static final int getTrimTypeByDesc(String tt)

getElementTypeByDesc

public static final int getElementTypeByDesc(String tt)

getTrimTypeCode

public static final String getTrimTypeCode(int i)

getElementTypeCode

public static final String getElementTypeCode(int i)

getTrimTypeDesc

public static final String getTrimTypeDesc(int i)

getElementTypeDesc

public static final String getElementTypeDesc(int i)

clone

public Object clone()
Overrides:
clone in class Object

getLength

public int getLength()

setLength

public void setLength(int length)

getName

public String getName()

setName

public void setName(String fieldname)

getType

public int getType()

getTypeDesc

public String getTypeDesc()

setType

public void setType(int type)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getTrimType

public int getTrimType()

getElementType

public int getElementType()

getTrimTypeCode

public String getTrimTypeCode()

getElementTypeCode

public String getElementTypeCode()

getTrimTypeDesc

public String getTrimTypeDesc()

getElementTypeDesc

public String getElementTypeDesc()

setTrimType

public void setTrimType(int trimtype)

setElementType

public void setElementType(int element_type)

getGroupSymbol

public String getGroupSymbol()

setGroupSymbol

public void setGroupSymbol(String group_symbol)

getDecimalSymbol

public String getDecimalSymbol()

setDecimalSymbol

public void setDecimalSymbol(String decimal_symbol)

getCurrencySymbol

public String getCurrencySymbol()

setCurrencySymbol

public void setCurrencySymbol(String currency_symbol)

getPrecision

public int getPrecision()

setPrecision

public void setPrecision(int precision)

isRepeated

public boolean isRepeated()

setRepeated

public void setRepeated(boolean repeat)

flipRepeated

public void flipRepeated()

getFieldPositionsCode

public String getFieldPositionsCode()

guess

public void guess()