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 Constructor Description BaseFileField()
BaseFileField(String fieldname, int position, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
int
compare(Object obj)
int
compareTo(org.pentaho.di.core.gui.TextFileInputFieldInterface field)
org.pentaho.di.core.gui.TextFileInputFieldInterface
createNewInstance(String newFieldname, int x, int newlength)
boolean
equal(Object obj)
void
flipIgnored()
void
flipRepeated()
String
getCurrencySymbol()
String
getDecimalSymbol()
String
getFormat()
String
getGroupSymbol()
String
getIfNullValue()
int
getLength()
String
getName()
String
getNullString()
int
getPosition()
int
getPrecision()
int
getTrimType()
String
getTrimTypeCode()
String
getTrimTypeDesc()
int
getType()
String
getTypeDesc()
void
guess()
void
guessIgnore()
static int
guessPrecision(double d)
void
guessTrimType()
void
guessType()
boolean
isIgnored()
boolean
isRepeated()
void
setCurrencySymbol(String currency_symbol)
void
setDecimalSymbol(String decimal_symbol)
void
setFormat(String format)
void
setGroupSymbol(String group_symbol)
void
setIfNullValue(String ifNullValue)
void
setIgnored(boolean ignore)
void
setLength(int length)
void
setName(String fieldname)
void
setNullString(String null_string)
void
setPosition(int position)
void
setPrecision(int precision)
void
setRepeated(boolean repeat)
void
setSamples(String[] samples)
void
setTrimType(int trimtype)
void
setTrimType(String value)
void
setType(int type)
void
setType(String value)
String
toString()
-
-
-
Constructor Detail
-
BaseFileField
public BaseFileField(String fieldname, int position, int length)
-
BaseFileField
public BaseFileField()
-
-
Method Detail
-
compare
public int compare(Object obj)
-
compareTo
public int compareTo(org.pentaho.di.core.gui.TextFileInputFieldInterface field)
- Specified by:
compareTo
in interfaceComparable<org.pentaho.di.core.gui.TextFileInputFieldInterface>
-
equal
public boolean equal(Object obj)
-
getPosition
public int getPosition()
- Specified by:
getPosition
in interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setPosition
public void setPosition(int position)
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setLength
public void setLength(int length)
- Specified by:
setLength
in interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
setName
public void setName(String fieldname)
-
getType
public int getType()
-
getTypeDesc
public String getTypeDesc()
-
setType
public void setType(int type)
-
setType
public void setType(String value)
-
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)
-
setTrimType
public void setTrimType(String value)
-
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)
-
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:
createNewInstance
in interfaceorg.pentaho.di.core.gui.TextFileInputFieldInterface
-
-