org.exolab.castor.xml.handlers

Class DefaultFieldHandlerFactory


public class DefaultFieldHandlerFactory
extends FieldHandlerFactory

The default FieldHandlerFactory implementation
Version:
$Revision: 5951 $ $Date: 2004-04-08 22:44:47 -0600 (Thu, 08 Apr 2004) $
Author:
Keith Visco

Method Summary

GeneralizedFieldHandler
createFieldHandler(Class type)
Creates a GeneralizedFieldHandler for the given class type.
Class[]
getSupportedTypes()
Returns an array of the supported Class types for this FieldHandlerFactory.
boolean
isSupportedType(Class type)
Returns true if the given Class type is supported by this FieldHandlerFactory.

Methods inherited from class org.exolab.castor.mapping.FieldHandlerFactory

createFieldHandler, getSupportedTypes, isSupportedType

Method Details

createFieldHandler

public GeneralizedFieldHandler createFieldHandler(Class type)
            throws MappingException
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.
Overrides:
createFieldHandler in interface FieldHandlerFactory
Parameters:
type - the Class type to create the FieldHandler for.

getSupportedTypes

public Class[] getSupportedTypes()
Returns an array of the supported Class types for this FieldHandlerFactory. The array may be empty, but must not be null.
Overrides:
getSupportedTypes in interface FieldHandlerFactory
Returns:
an array of supported Class types.

isSupportedType

public boolean isSupportedType(Class type)
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.
Overrides:
isSupportedType in interface FieldHandlerFactory
Parameters:
type - the Class type to determine support for.
Returns:
true if the given Class type is supported.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com