org.pentaho.di.trans.steps.addxml
Class XMLField

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

public class XMLField
extends Object
implements Cloneable

Describes a single field in an XML output file

Since:
14-jan-2006
Author:
Matt

Constructor Summary
XMLField()
           
XMLField(String fieldName, String elementName, int type, String format, int length, int precision, String currencySymbol, String decimalSymbol, String groupSymbol, String nullString, boolean attribute, String attributeParentName)
           
 
Method Summary
 Object clone()
           
 int compare(Object obj)
           
 boolean equal(Object obj)
           
 String getAttributeParentName()
           
 String getCurrencySymbol()
           
 String getDecimalSymbol()
           
 String getElementName()
           
 String getFieldName()
           
 String getFormat()
           
 String getGroupingSymbol()
           
 int getLength()
           
 String getNullString()
           
 int getPrecision()
           
 int getType()
           
 String getTypeDesc()
           
 boolean isAttribute()
           
 void setAttribute(boolean attribute)
           
 void setAttributeParentName(String attributeParentName)
           
 void setCurrencySymbol(String currency_symbol)
           
 void setDecimalSymbol(String decimal_symbol)
           
 void setElementName(String elementName)
           
 void setFieldName(String fieldname)
           
 void setFormat(String format)
           
 void setGroupingSymbol(String group_symbol)
           
 void setLength(int length)
           
 void setNullString(String null_string)
           
 void setPrecision(int precision)
           
 void setType(int type)
           
 void setType(String typeDesc)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLField

public XMLField(String fieldName,
                String elementName,
                int type,
                String format,
                int length,
                int precision,
                String currencySymbol,
                String decimalSymbol,
                String groupSymbol,
                String nullString,
                boolean attribute,
                String attributeParentName)

XMLField

public XMLField()
Method Detail

compare

public int compare(Object obj)

equal

public boolean equal(Object obj)

clone

public Object clone()
Overrides:
clone in class Object

getLength

public int getLength()

setLength

public void setLength(int length)

getFieldName

public String getFieldName()

setFieldName

public void setFieldName(String fieldname)

getType

public int getType()

getTypeDesc

public String getTypeDesc()

setType

public void setType(int type)

setType

public void setType(String typeDesc)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getGroupingSymbol

public String getGroupingSymbol()

setGroupingSymbol

public void setGroupingSymbol(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)

getNullString

public String getNullString()

setNullString

public void setNullString(String null_string)

toString

public String toString()
Overrides:
toString in class Object

getElementName

public String getElementName()
Returns:
Returns the elementName.

setElementName

public void setElementName(String elementName)
Parameters:
elementName - The elementName to set.

isAttribute

public boolean isAttribute()
Returns:
true if the field should be encoded as attribute instead of a child node.

setAttribute

public void setAttribute(boolean attribute)
Parameters:
attribute - set to true if the field should be encoded as attribute instead of a child node

getAttributeParentName

public String getAttributeParentName()
Returns:
Returns the attributeParentName.

setAttributeParentName

public void setAttributeParentName(String attributeParentName)
Parameters:
attributeParentName - The attributeParentName to set.