Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.xml.factory.objects.ClassFactoryImpl
ClassFactory
interface.
Constructor Summary | |
|
Method Summary | |
void |
|
boolean |
|
ClassComparator |
|
Configuration |
|
ObjectDescription |
|
Iterator |
|
ObjectDescription |
|
int |
|
protected void |
|
public void configure(Configuration config)
Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends. The configuration contents may change during the reporting.
- Specified by:
- configure in interface ClassFactory
- Parameters:
config
- the configuration, never null
public boolean equals(Object o)
Tests for equality.
- Specified by:
- equals in interface ClassFactory
- Parameters:
o
- the object to test.
- Returns:
- A boolean.
public ClassComparator getComparator()
Returns the class comparator used to sort the super classes of an object.
- Returns:
- the class comparator.
public Configuration getConfig()
Returns the currently set configuration or null, if none was set.
- Returns:
- the configuration.
public ObjectDescription getDescriptionForClass(Class c)
Returns an object-description for a class.
- Specified by:
- getDescriptionForClass in interface ClassFactory
- Parameters:
c
- the class.
- Returns:
- An object description.
public Iterator getRegisteredClasses()
Returns an iterator that provides access to the registered object definitions.
- Specified by:
- getRegisteredClasses in interface ClassFactory
- Returns:
- The iterator.
public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns the most concrete object-description for the super class of a class.
- Specified by:
- getSuperClassObjectDescription in interface ClassFactory
- Parameters:
d
- the class.knownSuperClass
- a known supported superclass or null, if no superclass is known yet.
- Returns:
- The object description.
public int hashCode()
Returns a hash code.
- Specified by:
- hashCode in interface ClassFactory
- Returns:
- A hash code.
protected void registerClass(Class key, ObjectDescription od)
Registers an object description with the factory.
- Parameters:
key
- the key.od
- the object description.