Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pentaho.di.trans.steps.xmlinputsax
Class XMLInputSaxField

    java.lang.Object
      org.pentaho.di.trans.steps.xmlinputsax.XMLInputSaxField

All Implemented Interfaces:
  Cloneable

    public class XMLInputSaxField

extends Object
implements Cloneable

Describes an XML field and the position in an XML file

Since:
  16-12-2005
Author:
  Matt

Field Summary
`static String` | `POSITION_MARKER`
`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
`XMLInputSaxField()`
`XMLInputSaxField(Node fnode)`
`XMLInputSaxField(String fieldname, XMLInputSaxFieldPosition[] xmlInputFieldPositions)`

Method Summary
`Object` | `clone()`
`boolean` | `equals(Object arg)`
`void` | `flipRepeated()`
`String` | `getCurrencySymbol()`
`String` | `getDecimalSymbol()`
`XMLInputSaxFieldPosition[]` | `getFieldPosition()`
`String` | `getFieldPositionsCode()`
`String` | `getFieldPositionsCode(int startPosition)`
`String` | `getFormat()`
`String` | `getGroupSymbol()`
`int` | `getLength()`
`String` | `getName()`
`int` | `getPrecision()`
`String[]` | `getSamples()`
`int` | `getTrimType()`
`static int` | `getTrimType(String tt)`
`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` | `setFieldPosition(String encoded)`
`void` | `setFieldPosition(XMLInputSaxFieldPosition[] xmlInputFieldPositions)`
`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` | `setSamples(String[] samples)`
`void` | `setTrimType(int trimtype)`
`void` | `setType(int type)`

Methods inherited from class java.lang.Object
`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

### trimTypeDesc

    public static final String[] trimTypeDesc

### POSITION_MARKER

    public static final String POSITION_MARKER

See Also:
  Constant Field Values

Constructor Detail

### XMLInputSaxField

    public XMLInputSaxField(String fieldname,
                            XMLInputSaxFieldPosition[] xmlInputFieldPositions)

### XMLInputSaxField

    public XMLInputSaxField()

### XMLInputSaxField

    public XMLInputSaxField(Node fnode)
                     throws org.pentaho.di.core.exception.KettleValueException

Throws:
  `org.pentaho.di.core.exception.KettleValueException`

Method Detail

### getXML

    public String getXML()

### getTrimType

    public static final int getTrimType(String tt)

### getTrimTypeDesc

    public static final String getTrimTypeDesc(int i)

### clone

    public Object clone()

  Overrides:
    `clone` in class `Object`

### getFieldPosition

    public XMLInputSaxFieldPosition[] getFieldPosition()

  Returns:
    Returns the xmlInputFieldPositions.

### setFieldPosition

    public void setFieldPosition(XMLInputSaxFieldPosition[] xmlInputFieldPositions)

  Parameters:
    `xmlInputFieldPositions` - The xmlInputFieldPositions to set.

### 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)

### setSamples

    public void setSamples(String[] samples)

### getSamples

    public String[] getSamples()

### getTrimType

    public int getTrimType()

### 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()

### getFieldPositionsCode

    public String getFieldPositionsCode()

### getFieldPositionsCode

    public String getFieldPositionsCode(int startPosition)

### guess

    public void guess()

### setFieldPosition

    public void setFieldPosition(String encoded)
                          throws org.pentaho.di.core.exception.KettleException

  Throws:
    `org.pentaho.di.core.exception.KettleException`

### equals

    public boolean equals(Object arg)

  Overrides:
    `equals` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD