Top Description Fields Constructors Methods
org.dom4j.swing

public Class XMLTableColumnDefinition

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.dom4j.DocumentHelper, .Node, .XPath

XMLTableColumnDefinition a column within a table definition.

Author
James Strachan
Version
$Revision: 1.10 $

Field Summary

Modifier and TypeField and Description
private XPath
columnNameXPath

Holds the XPath used for the column name

private String
name

Holds value of property name.

public static final int
public static final int
public static final int
public static final int
private int
type

Holds value of property type.

private XPath
xpath

Holds value of property xpath.

Constructor Summary

AccessConstructor and Description
public
public
XMLTableColumnDefinition(String name, String expression, int type)

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

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

Method Summary

Modifier and TypeMethod and Description
protected XPath
createXPath(String expression)

public Class<?>
public XPath

Returns:

the XPath used to create the column name
getColumnNameXPath
()

DOCUMENT ME!

public String

Returns:

Value of property name.
getName
()

Getter for property name.

public int

Returns:

Value of property type.
getType
()

Getter for property type.

public Object
public XPath

Returns:

Value of property xpath.
getXPath
()

Getter for property xpath.

protected void
public static int
parseType(String typeName)

public void
setColumnNameXPath(XPath
New value of property xpath.
columnNameXPath
)

Setter for property columnNameXPath.

public void
setName(String
New value of property name.
name
)

Setter for property name.

public void
setType(int
New value of property type.
type
)

Setter for property type.

public void
setXPath(XPath
New value of property xpath.
xPath
)

Setter for property xpath.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnNameXPathback to summary
private XPath columnNameXPath

Holds the XPath used for the column name

nameback to summary
private String name

Holds value of property name.

NODE_TYPEback to summary
public static final int NODE_TYPE
NUMBER_TYPEback to summary
public static final int NUMBER_TYPE
OBJECT_TYPEback to summary
public static final int OBJECT_TYPE
STRING_TYPEback to summary
public static final int STRING_TYPE
typeback to summary
private int type

Holds value of property type.

xpathback to summary
private XPath xpath

Holds value of property xpath.

Constructor Detail

XMLTableColumnDefinitionback to summary
public XMLTableColumnDefinition()
XMLTableColumnDefinitionback to summary
public XMLTableColumnDefinition(String name, String expression, int type)
XMLTableColumnDefinitionback to summary
public XMLTableColumnDefinition(String name, XPath xpath, int type)
XMLTableColumnDefinitionback to summary
public XMLTableColumnDefinition(XPath columnXPath, XPath xpath, int type)

Method Detail

createXPathback to summary
protected XPath createXPath(String expression)
getColumnClassback to summary
public Class<?> getColumnClass()
getColumnNameXPathback to summary
public XPath getColumnNameXPath()

DOCUMENT ME!

Returns:XPath

the XPath used to create the column name

getNameback to summary
public String getName()

Getter for property name.

Returns:String

Value of property name.

getTypeback to summary
public int getType()

Getter for property type.

Returns:int

Value of property type.

getValueback to summary
public Object getValue(Object row)
getXPathback to summary
public XPath getXPath()

Getter for property xpath.

Returns:XPath

Value of property xpath.

handleExceptionback to summary
protected void handleException(Exception e)
parseTypeback to summary
public static int parseType(String typeName)
setColumnNameXPathback to summary
public void setColumnNameXPath(XPath columnNameXPath)

Setter for property columnNameXPath.

Parameters
columnNameXPath:XPath

New value of property xpath.

setNameback to summary
public void setName(String name)

Setter for property name.

Parameters
name:String

New value of property name.

setTypeback to summary
public void setType(int type)

Setter for property type.

Parameters
type:int

New value of property type.

setXPathback to summary
public void setXPath(XPath xPath)

Setter for property xpath.

Parameters
xPath:XPath

New value of property xpath.