org.pentaho.di.trans.steps.addxml
Class XMLField
java.lang.Object
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)
|
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()
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.