public class XMLTableDefinition
extends java.lang.Object
implements java.io.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(java.lang.String name,
java.lang.String expression) |
void |
addColumn(java.lang.String name,
java.lang.String expression,
int type) |
void |
addColumn(XMLTableColumnDefinition column) |
void |
addColumnWithXPathName(java.lang.String columnNameXPathExpression,
java.lang.String expression,
int type) |
void |
addNumberColumn(java.lang.String name,
java.lang.String expression) |
void |
addStringColumn(java.lang.String name,
java.lang.String expression) |
void |
clear() |
protected void |
clearCaches() |
protected XPath |
createColumnXPath(java.lang.String expression) |
protected XPath |
createXPath(java.lang.String expression) |
XMLTableColumnDefinition |
getColumn(int index) |
XMLTableColumnDefinition |
getColumn(java.lang.String columnName) |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex)
DOCUMENT ME!
|
XPath |
getColumnNameXPath(int columnIndex)
DOCUMENT ME!
|
XPath |
getColumnXPath(int columnIndex)
DOCUMENT ME!
|
XPath |
getRowXPath()
Getter for property rowXPath.
|
java.lang.Object |
getValueAt(java.lang.Object row,
int columnIndex) |
java.lang.Object |
getVariableValue(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName) |
protected void |
handleException(java.lang.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(java.lang.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 java.lang.Class<?> getColumnClass(int columnIndex)
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
columnIndex
- DOCUMENT ME!public XPath getColumnXPath(int columnIndex)
columnIndex
- DOCUMENT ME!public XPath getColumnNameXPath(int columnIndex)
columnIndex
- DOCUMENT ME!public java.lang.Object getValueAt(java.lang.Object row, int columnIndex)
public void addColumn(java.lang.String name, java.lang.String expression)
public void addColumn(java.lang.String name, java.lang.String expression, int type)
public void addColumnWithXPathName(java.lang.String columnNameXPathExpression, java.lang.String expression, int type)
public void addStringColumn(java.lang.String name, java.lang.String expression)
public void addNumberColumn(java.lang.String name, java.lang.String expression)
public void addColumn(XMLTableColumnDefinition column)
public void removeColumn(XMLTableColumnDefinition column)
public void clear()
public XMLTableColumnDefinition getColumn(int index)
public XMLTableColumnDefinition getColumn(java.lang.String columnName)
public XPath getRowXPath()
public void setRowXPath(XPath rowXPath)
rowXPath
- New value of property rowXPath.public void setRowExpression(java.lang.String xpath)
public java.lang.Object getVariableValue(java.lang.String namespaceURI, java.lang.String prefix, java.lang.String localName)
getVariableValue
in interface org.jaxen.VariableContext
protected XPath createXPath(java.lang.String expression)
protected XPath createColumnXPath(java.lang.String expression)
protected void clearCaches()
protected void handleException(java.lang.Exception e)