org.exolab.castor.xml.handlers
Class DefaultFieldHandlerFactory

java.lang.Object
  extended by org.exolab.castor.mapping.FieldHandlerFactory
      extended by org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory

public class DefaultFieldHandlerFactory
extends FieldHandlerFactory

The default FieldHandlerFactory implementation

Version:
$Revision: 1.1 $ $Date: 2004/04/09 04:44:47 $
Author:
Keith Visco

Constructor Summary
DefaultFieldHandlerFactory()
           
 
Method Summary
 GeneralizedFieldHandler createFieldHandler(java.lang.Class type)
          Creates a GeneralizedFieldHandler for the given class type.
 java.lang.Class[] getSupportedTypes()
          Returns an array of the supported Class types for this FieldHandlerFactory.
 boolean isSupportedType(java.lang.Class type)
          Returns true if the given Class type is supported by this FieldHandlerFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFieldHandlerFactory

public DefaultFieldHandlerFactory()
Method Detail

getSupportedTypes

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

Specified by:
getSupportedTypes in class FieldHandlerFactory
Returns:
an array of supported Class types.

isSupportedType

public boolean isSupportedType(java.lang.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.

Specified by:
isSupportedType in class FieldHandlerFactory
Parameters:
type - the Class type to determine support for.
Returns:
true if the given Class type is supported.

createFieldHandler

public GeneralizedFieldHandler createFieldHandler(java.lang.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.

Specified by:
createFieldHandler in class FieldHandlerFactory
Parameters:
type - the Class type to create the FieldHandler for.
Throws:
MappingException


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