org.pentaho.di.trans.steps.textfileinput
Class TextFileInputField
java.lang.Object
org.pentaho.di.trans.steps.textfileinput.TextFileInputField
- All Implemented Interfaces:
- Cloneable, Comparable<TextFileInputFieldInterface>, TextFileInputFieldInterface
public class TextFileInputField
- extends Object
- implements Cloneable, TextFileInputFieldInterface
Describes a single field in a text file
- Since:
- 19-04-2004
- Author:
- Matt
TextFileInputField
public TextFileInputField(String fieldname,
int position,
int length)
TextFileInputField
public TextFileInputField()
compare
public int compare(Object obj)
compareTo
public int compareTo(TextFileInputFieldInterface field)
- Specified by:
compareTo
in interface Comparable<TextFileInputFieldInterface>
equal
public boolean equal(Object obj)
clone
public Object clone()
- Overrides:
clone
in class Object
getPosition
public int getPosition()
- Specified by:
getPosition
in interface TextFileInputFieldInterface
setPosition
public void setPosition(int position)
getLength
public int getLength()
- Specified by:
getLength
in interface TextFileInputFieldInterface
setLength
public void setLength(int length)
- Specified by:
setLength
in interface TextFileInputFieldInterface
getName
public String getName()
- Specified by:
getName
in interface TextFileInputFieldInterface
setName
public void setName(String fieldname)
getType
public int getType()
getTypeDesc
public String getTypeDesc()
setType
public void setType(int type)
isIgnored
public boolean isIgnored()
setIgnored
public void setIgnored(boolean ignore)
flipIgnored
public void flipIgnored()
getFormat
public String getFormat()
setFormat
public void setFormat(String format)
setSamples
public void setSamples(String[] samples)
getTrimType
public int getTrimType()
getTrimTypeCode
public String getTrimTypeCode()
getTrimTypeDesc
public String getTrimTypeDesc()
setTrimType
public void setTrimType(int trimtype)
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()
getNullString
public String getNullString()
setNullString
public void setNullString(String null_string)
getIfNullValue
public String getIfNullValue()
setIfNullValue
public void setIfNullValue(String ifNullValue)
toString
public String toString()
- Overrides:
toString
in class Object
guess
public void guess()
guessTrimType
public void guessTrimType()
guessType
public void guessType()
guessPrecision
public static final int guessPrecision(double d)
guessIgnore
public void guessIgnore()
createNewInstance
public TextFileInputFieldInterface createNewInstance(String newFieldname,
int x,
int newlength)
- Specified by:
createNewInstance
in interface TextFileInputFieldInterface