public class XMLTableDefinition extends Object implements Serializable, org.jaxen.VariableContext
XMLTableDefinition
represents a table definition based on
XPath expression evaluated on an XML document.
Constructor and Description |
---|
XMLTableDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(String name,
String expression) |
void |
addColumn(String name,
String expression,
int type) |
void |
addColumn(XMLTableColumnDefinition column) |
void |
addColumnWithXPathName(String columnNameXPathExpression,
String expression,
int type) |
void |
addNumberColumn(String name,
String expression) |
void |
addStringColumn(String name,
String expression) |
void |
clear() |
protected void |
clearCaches() |
protected XPath |
createColumnXPath(String expression) |
protected XPath |
createXPath(String expression) |
XMLTableColumnDefinition |
getColumn(int index) |
XMLTableColumnDefinition |
getColumn(String columnName) |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex)
DOCUMENT ME!
|
XPath |
getColumnNameXPath(int columnIndex)
DOCUMENT ME!
|
XPath |
getColumnXPath(int columnIndex)
DOCUMENT ME!
|
XPath |
getRowXPath()
Getter for property rowXPath.
|
Object |
getValueAt(Object row,
int columnIndex) |
Object |
getVariableValue(String namespaceURI,
String prefix,
String localName) |
protected void |
handleException(Exception e) |
static XMLTableDefinition |
load(Document definition)
Loads an XML table definition from an XML definition document
|
static XMLTableDefinition |
load(Element definition)
Loads an XML table definition from an XML definition document
|
void |
removeColumn(XMLTableColumnDefinition column) |
void |
setRowExpression(String xpath) |
void |
setRowXPath(XPath rowXPath)
Setter for property rowXPath.
|
public static XMLTableDefinition load(Document definition)
definition
- DOCUMENT ME!public static XMLTableDefinition load(Element definition)
definition
- DOCUMENT ME!public Class getColumnClass(int columnIndex)
public int getColumnCount()
public String getColumnName(int columnIndex)
columnIndex
- DOCUMENT ME!public XPath getColumnXPath(int columnIndex)
columnIndex
- DOCUMENT ME!public XPath getColumnNameXPath(int columnIndex)
columnIndex
- DOCUMENT ME!public void addColumnWithXPathName(String columnNameXPathExpression, String expression, int type)
public void addColumn(XMLTableColumnDefinition column)
public void removeColumn(XMLTableColumnDefinition column)
public void clear()
public XMLTableColumnDefinition getColumn(int index)
public XMLTableColumnDefinition getColumn(String columnName)
public XPath getRowXPath()
public void setRowXPath(XPath rowXPath)
rowXPath
- New value of property rowXPath.public void setRowExpression(String xpath)
public Object getVariableValue(String namespaceURI, String prefix, String localName)
getVariableValue
in interface org.jaxen.VariableContext
protected void clearCaches()
protected void handleException(Exception e)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.