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
org.jfree.xml.factory.objects.ClassFactoryCollector
public class ClassFactoryCollector
extends ClassFactoryImpl
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
boolean |
|
ObjectDescription |
|
Iterator |
|
Iterator |
|
ObjectDescription |
|
int |
|
Methods inherited from class org.jfree.xml.factory.objects.ClassFactoryImpl | |
configure , equals , getComparator , getConfig , getDescriptionForClass , getRegisteredClasses , getSuperClassObjectDescription , hashCode , registerClass |
public void addFactory(ClassFactory factory)
Adds a class factory to the collection.
- Parameters:
factory
- the factory.
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
- Overrides:
- configure in interface ClassFactoryImpl
- Parameters:
config
- the configuration, never null
public boolean equals(Object o)
Tests for equality.
- Specified by:
- equals in interface ClassFactory
- Overrides:
- equals in interface ClassFactoryImpl
- Parameters:
o
- the object to test.
- Returns:
- A boolean.
public ObjectDescription getDescriptionForClass(Class c)
Returns an object description for a class.
- Specified by:
- getDescriptionForClass in interface ClassFactory
- Overrides:
- getDescriptionForClass in interface ClassFactoryImpl
- Parameters:
c
- the class.
- Returns:
- The object description.
public Iterator getFactories()
Returns an iterator the provides access to all the factories in the collection.
- Returns:
- The iterator.
public Iterator getRegisteredClasses()
Returns an iterator that provices access to the registered classes.
- Specified by:
- getRegisteredClasses in interface ClassFactory
- Overrides:
- getRegisteredClasses in interface ClassFactoryImpl
- Returns:
- The iterator.
public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns an object-description for the super class of a class.
- Specified by:
- getSuperClassObjectDescription in interface ClassFactory
- Overrides:
- getSuperClassObjectDescription in interface ClassFactoryImpl
- Parameters:
d
- the class.knownSuperClass
- the last known super class or null.
- Returns:
- The object description.
public int hashCode()
Returns a hash code for the object.
- Specified by:
- hashCode in interface ClassFactory
- Overrides:
- hashCode in interface ClassFactoryImpl
- Returns:
- The hash code.