org.dom4j.swing

Class XMLTableColumnDefinition

public class XMLTableColumnDefinition extends Object implements Serializable

XMLTableColumnDefinition a column within a table definition.

Version: $Revision: 1.10 $

Author: James Strachan

Field Summary
static intNODE_TYPE
static intNUMBER_TYPE
static intOBJECT_TYPE
static intSTRING_TYPE
Constructor Summary
XMLTableColumnDefinition()
XMLTableColumnDefinition(String name, String expression, int type)
XMLTableColumnDefinition(String name, XPath xpath, int type)
XMLTableColumnDefinition(XPath columnXPath, XPath xpath, int type)
Method Summary
protected XPathcreateXPath(String expression)
ClassgetColumnClass()
XPathgetColumnNameXPath()
DOCUMENT ME!
StringgetName()
Getter for property name.
intgetType()
Getter for property type.
ObjectgetValue(Object row)
XPathgetXPath()
Getter for property xpath.
protected voidhandleException(Exception e)
static intparseType(String typeName)
voidsetColumnNameXPath(XPath columnNameXPath)
Setter for property columnNameXPath.
voidsetName(String name)
Setter for property name.
voidsetType(int type)
Setter for property type.
voidsetXPath(XPath xPath)
Setter for property xpath.

Field Detail

NODE_TYPE

public static final int NODE_TYPE

NUMBER_TYPE

public static final int NUMBER_TYPE

OBJECT_TYPE

public static final int OBJECT_TYPE

STRING_TYPE

public static final int STRING_TYPE

Constructor Detail

XMLTableColumnDefinition

public XMLTableColumnDefinition()

XMLTableColumnDefinition

public XMLTableColumnDefinition(String name, String expression, int type)

XMLTableColumnDefinition

public XMLTableColumnDefinition(String name, XPath xpath, int type)

XMLTableColumnDefinition

public XMLTableColumnDefinition(XPath columnXPath, XPath xpath, int type)

Method Detail

createXPath

protected XPath createXPath(String expression)

getColumnClass

public Class getColumnClass()

getColumnNameXPath

public XPath getColumnNameXPath()
DOCUMENT ME!

Returns: the XPath used to create the column name

getName

public String getName()
Getter for property name.

Returns: Value of property name.

getType

public int getType()
Getter for property type.

Returns: Value of property type.

getValue

public Object getValue(Object row)

getXPath

public XPath getXPath()
Getter for property xpath.

Returns: Value of property xpath.

handleException

protected void handleException(Exception e)

parseType

public static int parseType(String typeName)

setColumnNameXPath

public void setColumnNameXPath(XPath columnNameXPath)
Setter for property columnNameXPath.

Parameters: columnNameXPath New value of property xpath.

setName

public void setName(String name)
Setter for property name.

Parameters: name New value of property name.

setType

public void setType(int type)
Setter for property type.

Parameters: type New value of property type.

setXPath

public void setXPath(XPath xPath)
Setter for property xpath.

Parameters: xPath New value of property xpath.

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge