public class XMLInputSaxFieldPosition extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATT_MARKER |
static String |
NR_MARKER |
static int |
XML_ATTRIBUTE |
static int |
XML_ELEMENT_ATT |
static int |
XML_ELEMENT_POS |
| Constructor and Description |
|---|
XMLInputSaxFieldPosition(String encoded)
Construnct a new XMLFieldPosition based on an a code: E=Elementame, A=Attributename
|
XMLInputSaxFieldPosition(String name,
int type)
Create a new XML Input Field position.
|
XMLInputSaxFieldPosition(String name,
int type,
int elementNr)
Create a new XML Input Field position.
|
XMLInputSaxFieldPosition(String name,
String attribute,
String value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
static String |
encodePath(List<XMLInputSaxFieldPosition> path)
Encode the path to an XML element or attribute
|
String |
getAttribute() |
String |
getAttributeValue() |
int |
getElementNr() |
String |
getName() |
int |
getType() |
void |
setElementNr(int elementNr) |
void |
setName(String name) |
void |
setType(int type) |
String |
toString() |
public static final int XML_ELEMENT_POS
public static final int XML_ELEMENT_ATT
public static final int XML_ATTRIBUTE
public static final String NR_MARKER
public static final String ATT_MARKER
public XMLInputSaxFieldPosition(String name, int type) throws org.pentaho.di.core.exception.KettleValueException
name - the name of the element or attributetype - Element or Attribute (XML_ELEMENT, XML_ATTRIBUTE)org.pentaho.di.core.exception.KettleValueExceptionpublic XMLInputSaxFieldPosition(String name, int type, int elementNr) throws org.pentaho.di.core.exception.KettleValueException
name - the name of the element or attributetype - Element or Attribute (XML_ELEMENT, XML_ATTRIBUTE)elementNr - the element number to pick.org.pentaho.di.core.exception.KettleValueExceptionpublic XMLInputSaxFieldPosition(String name, String attribute, String value)
public XMLInputSaxFieldPosition(String encoded) throws org.pentaho.di.core.exception.KettleValueException
encoded - org.pentaho.di.core.exception.KettleValueExceptionpublic String getName()
public void setName(String name)
name - The name to set.public int getType()
public void setType(int type)
type - The type to set.public String getAttribute()
public String getAttributeValue()
public int getElementNr()
public void setElementNr(int elementNr)
elementNr - The elementNr to set.public static final String encodePath(List<XMLInputSaxFieldPosition> path)
path - An ArrayList of XMLInputFieldPosition