org.exolab.castor.xml.handlers

Class ToStringFieldHandler

public class ToStringFieldHandler extends GeneralizedFieldHandler

An implementation of GeneralizedFieldHandler that simply calls Object#toString() in the conversion methods

Version: $Revision: 1.1 $ $Date: 2005/03/01 00:53:23 $

Author: Keith Visco

Constructor Summary
ToStringFieldHandler(Class type)
Creates a new ToStringFieldHandler
ToStringFieldHandler(Class type, FieldHandler handler)
Creates a new ToStringFieldHandler
Method Summary
ObjectconvertUponGet(Object value)
ObjectconvertUponSet(Object value)
ClassgetFieldType()

Constructor Detail

ToStringFieldHandler

public ToStringFieldHandler(Class type)
Creates a new ToStringFieldHandler

Parameters: type the class type to create the FieldHandler for

ToStringFieldHandler

public ToStringFieldHandler(Class type, FieldHandler handler)
Creates a new ToStringFieldHandler

Parameters: type the class type to create the FieldHandler for handler the FieldHandler to wrap

Method Detail

convertUponGet

public Object convertUponGet(Object value)

convertUponSet

public Object convertUponSet(Object value)

getFieldType

public Class getFieldType()
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com