org.pentaho.di.trans.steps.getxmldata
Class GetXMLDataField

java.lang.Object
  extended by org.pentaho.di.trans.steps.getxmldata.GetXMLDataField
All Implemented Interfaces:
Cloneable

public class GetXMLDataField
extends Object
implements Cloneable

Describes an XML field and the position in an XML field.

Since:
20-06-2007
Author:
Samatar, Brahim

Field Summary
static int ELEMENT_TYPE_ATTRIBUT
           
static int ELEMENT_TYPE_NODE
           
static String[] ElementOldTypeCode
           
static String[] ElementTypeCode
           
static String[] ElementTypeDesc
           
static int RESULT_TYPE_TYPE_SINGLE_NODE
           
static int RESULT_TYPE_VALUE_OF
           
static String[] ResultTypeCode
           
static String[] ResultTypeDesc
           
static String[] trimTypeCode
           
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
GetXMLDataField()
           
GetXMLDataField(Node fnode)
           
GetXMLDataField(String fieldname)
           
 
Method Summary
 Object clone()
           
 void flipRepeated()
           
 String getCurrencySymbol()
           
 String getDecimalSymbol()
           
 int getElementType()
           
static int getElementTypeByCode(String tt)
           
static int getElementTypeByDesc(String tt)
           
 String getElementTypeCode()
           
static String getElementTypeCode(int i)
           
 String getElementTypeDesc()
           
static String getElementTypeDesc(int i)
           
 String getFormat()
           
 String getGroupSymbol()
           
 int getLength()
           
 String getName()
           
 int getPrecision()
           
 int getResultType()
           
static int getResultTypeByCode(String tt)
           
static int getResultTypeByDesc(String tt)
           
 String getResultTypeCode()
           
static String getResultTypeCode(int i)
           
 String getResultTypeDesc()
           
static String getResultTypeDesc(int i)
           
 int getTrimType()
           
static int getTrimTypeByCode(String tt)
           
static int getTrimTypeByDesc(String tt)
           
 String getTrimTypeCode()
           
static String getTrimTypeCode(int i)
           
 String getTrimTypeDesc()
           
static String getTrimTypeDesc(int i)
           
 int getType()
           
 String getTypeDesc()
           
 String getXML()
           
 String getXPath()
           
 boolean isRepeated()
           
 void setCurrencySymbol(String currency_symbol)
           
 void setDecimalSymbol(String decimal_symbol)
           
 void setElementType(int element_type)
           
 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 setResultType(int resulttype)
           
 void setTrimType(int trimtype)
           
 void setType(int type)
           
 void setXPath(String fieldxpath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_TYPE_VALUE_OF

public static final int RESULT_TYPE_VALUE_OF
See Also:
Constant Field Values

RESULT_TYPE_TYPE_SINGLE_NODE

public static final int RESULT_TYPE_TYPE_SINGLE_NODE
See Also:
Constant Field Values

ResultTypeCode

public static final String[] ResultTypeCode

ResultTypeDesc

public static final String[] ResultTypeDesc

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

ELEMENT_TYPE_NODE

public static final int ELEMENT_TYPE_NODE
See Also:
Constant Field Values

ELEMENT_TYPE_ATTRIBUT

public static final int ELEMENT_TYPE_ATTRIBUT
See Also:
Constant Field Values

trimTypeCode

public static final String[] trimTypeCode

trimTypeDesc

public static final String[] trimTypeDesc

ElementTypeCode

public static final String[] ElementTypeCode

ElementOldTypeCode

public static final String[] ElementOldTypeCode

ElementTypeDesc

public static final String[] ElementTypeDesc
Constructor Detail

GetXMLDataField

public GetXMLDataField(String fieldname)

GetXMLDataField

public GetXMLDataField()

GetXMLDataField

public GetXMLDataField(Node fnode)
                throws KettleValueException
Throws:
KettleValueException
Method Detail

getXML

public String getXML()

getTrimTypeByCode

public static final int getTrimTypeByCode(String tt)

getElementTypeByCode

public static final int getElementTypeByCode(String tt)

getTrimTypeByDesc

public static final int getTrimTypeByDesc(String tt)

getElementTypeByDesc

public static final int getElementTypeByDesc(String tt)

getTrimTypeCode

public static final String getTrimTypeCode(int i)

getElementTypeCode

public static final String getElementTypeCode(int i)

getTrimTypeDesc

public static final String getTrimTypeDesc(int i)

getElementTypeDesc

public static final String getElementTypeDesc(int i)

clone

public Object clone()
Overrides:
clone in class Object

getLength

public int getLength()

setLength

public void setLength(int length)

getName

public String getName()

getXPath

public String getXPath()

setXPath

public void setXPath(String fieldxpath)

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)

getTrimType

public int getTrimType()

getElementType

public int getElementType()

getTrimTypeCode

public String getTrimTypeCode()

getElementTypeCode

public String getElementTypeCode()

getTrimTypeDesc

public String getTrimTypeDesc()

getElementTypeDesc

public String getElementTypeDesc()

setTrimType

public void setTrimType(int trimtype)

setElementType

public void setElementType(int element_type)

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

getResultTypeByDesc

public static final int getResultTypeByDesc(String tt)

getResultTypeDesc

public String getResultTypeDesc()

getResultTypeDesc

public static final String getResultTypeDesc(int i)

getResultType

public int getResultType()

setResultType

public void setResultType(int resulttype)

getResultTypeByCode

public static final int getResultTypeByCode(String tt)

getResultTypeCode

public static final String getResultTypeCode(int i)

getResultTypeCode

public String getResultTypeCode()