|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dom4j.swing.XMLTableDefinition
XMLTableDefinition
represents a table definition based on
XPath expression evaluated on an XML document.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLTableDefinition()
Method Detail |
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 Object getValueAt(Object row, int columnIndex)
public void addColumn(String name, String expression)
public void addColumn(String name, String expression, int type)
public void addColumnWithXPathName(String columnNameXPathExpression, String expression, int type)
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |