Public Member Functions | |
abstract Class[] | getSupportedTypes () |
abstract boolean | isSupportedType (Class type) |
abstract GeneralizedFieldHandler | createFieldHandler (Class type) throws MappingException |
An abstract factory class for creating GeneralizedFieldHandlers.
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.
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.
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.
type | the Class type to determine support for. |
Implemented in org.exolab.castor.xml.handlers.DefaultFieldHandlerFactory.