org.jfree.xml.factory.objects

Class ClassFactoryCollector

public class ClassFactoryCollector extends ClassFactoryImpl

A class factory collector.

Author: Thomas Morgner

Constructor Summary
ClassFactoryCollector()
Creates a new class factory collector.
Method Summary
voidaddFactory(ClassFactory factory)
Adds a class factory to the collection.
voidconfigure(Configuration config)
Configures this factory.
booleanequals(Object o)
Tests for equality.
ObjectDescriptiongetDescriptionForClass(Class c)
Returns an object description for a class.
IteratorgetFactories()
Returns an iterator the provides access to all the factories in the collection.
IteratorgetRegisteredClasses()
Returns an iterator that provices access to the registered classes.
ObjectDescriptiongetSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns an object-description for the super class of a class.
inthashCode()
Returns a hash code for the object.

Constructor Detail

ClassFactoryCollector

public ClassFactoryCollector()
Creates a new class factory collector.

Method Detail

addFactory

public void addFactory(ClassFactory factory)
Adds a class factory to the collection.

Parameters: factory the factory.

configure

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.

Parameters: config the configuration, never null

equals

public boolean equals(Object o)
Tests for equality.

Parameters: o the object to test.

Returns: A boolean.

getDescriptionForClass

public ObjectDescription getDescriptionForClass(Class c)
Returns an object description for a class.

Parameters: c the class.

Returns: The object description.

getFactories

public Iterator getFactories()
Returns an iterator the provides access to all the factories in the collection.

Returns: The iterator.

getRegisteredClasses

public Iterator getRegisteredClasses()
Returns an iterator that provices access to the registered classes.

Returns: The iterator.

getSuperClassObjectDescription

public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns an object-description for the super class of a class.

Parameters: d the class. knownSuperClass the last known super class or null.

Returns: The object description.

hashCode

public int hashCode()
Returns a hash code for the object.

Returns: The hash code.