Public Member Functions

org.exolab.castor.mapping.FieldHandlerFactory Class Reference

Inheritance diagram for org.exolab.castor.mapping.FieldHandlerFactory:
org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory

List of all members.

Public Member Functions

abstract Class[] getSupportedTypes ()
abstract boolean isSupportedType (Class type)
abstract GeneralizedFieldHandler createFieldHandler (Class type) throws MappingException

Detailed Description

An abstract factory class for creating GeneralizedFieldHandlers.

Author:
Keith Visco
Version:
Revision:
1.1
Date:
2003/10/23 19:53:59

Member Function Documentation

abstract GeneralizedFieldHandler org.exolab.castor.mapping.FieldHandlerFactory.createFieldHandler ( Class  type  )  throws MappingException [pure virtual]

Creates a GeneralizedFieldHandler for the given class type. The method should return a new GeneralizedFieldHandler as an "underlying" FieldHandler will need to be set by the caller.

Parameters:
type the Class type to create the FieldHandler for.

Implemented in org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory.

Referenced by org.exolab.castor.xml.Introspector.generateClassDescriptor().

abstract Class [] org.exolab.castor.mapping.FieldHandlerFactory.getSupportedTypes (  )  [pure virtual]

Returns an array of the supported Class types for this FieldHandlerFactory. The array may be empty, but must not be null.

Returns:
an array of supported Class types.

Implemented in org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory.

abstract boolean org.exolab.castor.mapping.FieldHandlerFactory.isSupportedType ( Class  type  )  [pure virtual]

Returns true if the given Class type is supported by this FieldHandlerFactory. If the type is supported, a call to createFieldHandler will return a valid FieldHandler. If the type is not supported, a call to createFieldHandler may return null or throw a MappingException.

Parameters:
type the Class type to determine support for.
Returns:
true if the given Class type is supported.

Implemented in org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties