org.jfree.xml.util
public class SimpleObjectFactory extends Object implements ObjectFactory
| Constructor Summary | |
|---|---|
| SimpleObjectFactory()
Creates a new instance. | |
| Method Summary | |
|---|---|
| void | addGenericHandler(GenericObjectFactory handler)
Adds a generic handler.
|
| void | addManualMapping(ManualMappingDefinition mapping)
Adds a manual mapping.
|
| void | addMultiplexMapping(MultiplexMappingDefinition mplex)
Adds a multiplex mapping.
|
| void | clear()
Clears the mappings. |
| GenericObjectFactory | getFactoryForClass(Class c)
Returns a factory instance for the given class. |
| ManualMappingDefinition | getManualMappingDefinition(Class c)
Returns the manual mapping definition for the given class, or null, if
not manual definition exists.
|
| MultiplexMappingDefinition | getMultiplexDefinition(Class c)
Returns the multiplex definition for the given class, or null, if no
such definition exists.
|
| boolean | isGenericHandler(Class c)
Checks, whether a generic handler exists for the given class. |
Parameters: handler the handler.
Parameters: mapping the mapping.
Parameters: mplex the multiplex mapping.
Parameters: c the class
Returns: the object factory.
Parameters: c the class for which to check the existence of the definition
Returns: the manual mapping definition or null.
Parameters: c the class for which to check the existence of the multiplexer
Returns: the multiplexer for the class, or null if no multiplexer exists.
Parameters: c the class for which to check
Returns: true, if an generic handler is defined, false otherwise.