public class XMLTableDefinition extends Object implements Serializable, org.jaxen.VariableContext
XMLTableDefinition
represents a
table definition based on XPath expression evaluated
on an XML document.
Modifier and Type | Field and Description |
---|---|
private XMLTableColumnDefinition[] |
columnArray
integer index array cache
|
private Map |
columnNameIndex
name index cache
|
private List |
columns
The columns to display in this table
|
private Object |
rowValue
stores the current row value for the variableContext
|
private XPath |
rowXPath
Holds value of property rowXPath.
|
private org.jaxen.VariableContext |
variableContext
for cross-row variables
|
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 |
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) |
XPath |
getColumnXPath(int columnIndex) |
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.
|
private XMLTableColumnDefinition[] columnArray
private Map columnNameIndex
private org.jaxen.VariableContext variableContext
public XMLTableDefinition()
public static XMLTableDefinition load(Document definition)
public static XMLTableDefinition load(Element definition)
public Class getColumnClass(int columnIndex)
public int getColumnCount()
public String getColumnName(int columnIndex)
public XPath getColumnXPath(int columnIndex)
public Object getValueAt(Object row, int columnIndex)
public void addStringColumn(String name, String expression)
public void addNumberColumn(String name, String expression)
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 XPath createXPath(String expression)
protected XPath createColumnXPath(String expression)
protected void clearCaches()
protected void handleException(Exception e)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses