Class 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 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 interface Comparable<org.pentaho.di.core.gui.TextFileInputFieldInterface>
      • equal

        public boolean equal​(Object obj)
      • getPosition

        public int getPosition()
        Specified by:
        getPosition in interface org.pentaho.di.core.gui.TextFileInputFieldInterface
      • setPosition

        public void setPosition​(int position)
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.pentaho.di.core.gui.TextFileInputFieldInterface
      • setLength

        public void setLength​(int length)
        Specified by:
        setLength in interface org.pentaho.di.core.gui.TextFileInputFieldInterface
      • getName

        public String getName()
        Specified by:
        getName in interface org.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 interface org.pentaho.di.core.gui.TextFileInputFieldInterface