Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.xml.util.SimpleObjectFactory
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
GenericObjectFactory |
|
ManualMappingDefinition |
|
MultiplexMappingDefinition |
|
boolean |
|
public void addGenericHandler(GenericObjectFactory handler)
Adds a generic handler.
- Parameters:
handler
- the handler.
public void addManualMapping(ManualMappingDefinition mapping)
Adds a manual mapping.
- Parameters:
mapping
- the mapping.
public void addMultiplexMapping(MultiplexMappingDefinition mplex)
Adds a multiplex mapping.
- Parameters:
mplex
- the multiplex mapping.
public GenericObjectFactory getFactoryForClass(Class c)
Returns a factory instance for the given class. The factory is independent from all previously generated instances.
- Specified by:
- getFactoryForClass in interface ObjectFactory
- Parameters:
c
- the class
- Returns:
- the object factory.
public ManualMappingDefinition getManualMappingDefinition(Class c)
Returns the manual mapping definition for the given class, or null, if not manual definition exists.
- Specified by:
- getManualMappingDefinition in interface ObjectFactory
- Parameters:
c
- the class for which to check the existence of the definition
- Returns:
- the manual mapping definition or null.
public MultiplexMappingDefinition getMultiplexDefinition(Class c)
Returns the multiplex definition for the given class, or null, if no such definition exists.
- Specified by:
- getMultiplexDefinition in interface ObjectFactory
- 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.
public boolean isGenericHandler(Class c)
Checks, whether a generic handler exists for the given class. This does not check, whether an mapping exists.
- Specified by:
- isGenericHandler in interface ObjectFactory
- Parameters:
c
- the class for which to check
- Returns:
- true, if an generic handler is defined, false otherwise.