Package org.dom4j.swing
Class XMLTableColumnDefinition
- java.lang.Object
-
- org.dom4j.swing.XMLTableColumnDefinition
-
- All Implemented Interfaces:
java.io.Serializable
public class XMLTableColumnDefinition extends java.lang.Object implements java.io.Serializable
XMLTableColumnDefinition
a column within a table definition.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
NODE_TYPE
static int
NUMBER_TYPE
static int
OBJECT_TYPE
static int
STRING_TYPE
-
Constructor Summary
Constructors Constructor Description XMLTableColumnDefinition()
XMLTableColumnDefinition(java.lang.String name, java.lang.String expression, int type)
XMLTableColumnDefinition(java.lang.String name, XPath xpath, int type)
XMLTableColumnDefinition(XPath columnXPath, XPath xpath, int type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XPath
createXPath(java.lang.String expression)
java.lang.Class<?>
getColumnClass()
XPath
getColumnNameXPath()
DOCUMENT ME!java.lang.String
getName()
Getter for property name.int
getType()
Getter for property type.java.lang.Object
getValue(java.lang.Object row)
XPath
getXPath()
Getter for property xpath.protected void
handleException(java.lang.Exception e)
static int
parseType(java.lang.String typeName)
void
setColumnNameXPath(XPath columnNameXPath)
Setter for property columnNameXPath.void
setName(java.lang.String name)
Setter for property name.void
setType(int type)
Setter for property type.void
setXPath(XPath xPath)
Setter for property xpath.
-
-
-
Field Detail
-
OBJECT_TYPE
public static final int OBJECT_TYPE
- See Also:
- Constant Field Values
-
STRING_TYPE
public static final int STRING_TYPE
- See Also:
- Constant Field Values
-
NUMBER_TYPE
public static final int NUMBER_TYPE
- See Also:
- Constant Field Values
-
NODE_TYPE
public static final int NODE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLTableColumnDefinition
public XMLTableColumnDefinition()
-
XMLTableColumnDefinition
public XMLTableColumnDefinition(java.lang.String name, java.lang.String expression, int type)
-
XMLTableColumnDefinition
public XMLTableColumnDefinition(java.lang.String name, XPath xpath, int type)
-
-
Method Detail
-
parseType
public static int parseType(java.lang.String typeName)
-
getColumnClass
public java.lang.Class<?> getColumnClass()
-
getValue
public java.lang.Object getValue(java.lang.Object row)
-
getType
public int getType()
Getter for property type.- Returns:
- Value of property type.
-
setType
public void setType(int type)
Setter for property type.- Parameters:
type
- New value of property type.
-
getName
public java.lang.String getName()
Getter for property name.- Returns:
- Value of property name.
-
setName
public void setName(java.lang.String name)
Setter for property name.- Parameters:
name
- New value of property name.
-
getXPath
public XPath getXPath()
Getter for property xpath.- Returns:
- Value of property xpath.
-
setXPath
public void setXPath(XPath xPath)
Setter for property xpath.- Parameters:
xPath
- New value of property xpath.
-
getColumnNameXPath
public XPath getColumnNameXPath()
DOCUMENT ME!- Returns:
- the XPath used to create the column name
-
setColumnNameXPath
public void setColumnNameXPath(XPath columnNameXPath)
Setter for property columnNameXPath.- Parameters:
columnNameXPath
- New value of property xpath.
-
createXPath
protected XPath createXPath(java.lang.String expression)
-
handleException
protected void handleException(java.lang.Exception e)
-
-