Package org.pentaho.di.trans.steps.file
Class BaseFileField
java.lang.Object
org.pentaho.di.trans.steps.file.BaseFileField
- All Implemented Interfaces:
Cloneable,Comparable<org.pentaho.di.core.gui.TextFileInputFieldInterface>,org.pentaho.di.core.gui.TextFileInputFieldInterface
public class BaseFileField
extends Object
implements Cloneable, org.pentaho.di.core.gui.TextFileInputFieldInterface
Describes a single field in a text file
- Since:
- 19-04-2004
- Author:
- Matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intintcompareTo(org.pentaho.di.core.gui.TextFileInputFieldInterface field) org.pentaho.di.core.gui.TextFileInputFieldInterfacecreateNewInstance(String newFieldname, int x, int newlength) booleanvoidvoidintgetName()intintintintgetType()voidguess()voidstatic final intguessPrecision(double d) voidvoidbooleanbooleanvoidsetCurrencySymbol(String currency_symbol) voidsetDecimalSymbol(String decimal_symbol) voidvoidsetGroupSymbol(String group_symbol) voidsetIfNullValue(String ifNullValue) voidsetIgnored(boolean ignore) voidsetLength(int length) voidvoidsetNullString(String null_string) voidsetPosition(int position) voidsetPrecision(int precision) voidsetRepeated(boolean repeat) voidsetSamples(String[] samples) voidsetTrimType(int trimtype) voidsetTrimType(String value) voidsetType(int type) voidtoString()
-
Constructor Details
-
BaseFileField
-
BaseFileField
public BaseFileField()
-
-
Method Details
-
compare
-
compareTo
public int compareTo(org.pentaho.di.core.gui.TextFileInputFieldInterface field) - Specified by:
compareToin interfaceComparable<org.pentaho.di.core.gui.TextFileInputFieldInterface>
-
equal
-
clone
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setPosition
public void setPosition(int position) -
getLength
public int getLength()- Specified by:
getLengthin interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setLength
public void setLength(int length) - Specified by:
setLengthin interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
getName
- Specified by:
getNamein interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setName
-
getType
public int getType() -
getTypeDesc
-
setType
public void setType(int type) -
setType
-
isIgnored
public boolean isIgnored() -
setIgnored
public void setIgnored(boolean ignore) -
flipIgnored
public void flipIgnored() -
getFormat
-
setFormat
-
setSamples
-
getTrimType
public int getTrimType() -
getTrimTypeCode
-
getTrimTypeDesc
-
setTrimType
public void setTrimType(int trimtype) -
setTrimType
-
getGroupSymbol
-
setGroupSymbol
-
getDecimalSymbol
-
setDecimalSymbol
-
getCurrencySymbol
-
setCurrencySymbol
-
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
-
setNullString
-
getIfNullValue
-
setIfNullValue
-
toString
-
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 org.pentaho.di.core.gui.TextFileInputFieldInterface createNewInstance(String newFieldname, int x, int newlength) - Specified by:
createNewInstancein interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-