org.dom4j.swing
public class XMLTableDefinition extends Object implements Serializable, VariableContext
XMLTableDefinition represents a table definition based on
XPath expression evaluated on an XML document.
Version: $Revision: 1.8 $
| Constructor Summary | |
|---|---|
| XMLTableDefinition() | |
| Method Summary | |
|---|---|
| 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.
|
Parameters: columnIndex DOCUMENT ME!
Returns: the static column name. This is used if there is no columnNameXPath
Parameters: columnIndex DOCUMENT ME!
Returns: the XPath expresssion used to create the column name, if there is one or null if there is no XPath expression to name the column.
Parameters: columnIndex DOCUMENT ME!
Returns: the XPath expression used to evaluate the value of cells in this column
Returns: Value of property rowXPath.
Parameters: definition DOCUMENT ME!
Returns: DOCUMENT ME!
Parameters: definition DOCUMENT ME!
Returns: DOCUMENT ME!
Parameters: rowXPath New value of property rowXPath.