Package org.jfree.xml.factory.objects
Class ClassFactoryCollector
java.lang.Object
org.jfree.xml.factory.objects.ClassFactoryImpl
org.jfree.xml.factory.objects.ClassFactoryCollector
- All Implemented Interfaces:
Serializable,ClassFactory
A class factory collector.
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFactory(ClassFactory factory) Adds a class factory to the collection.voidconfigure(Configuration config) Configures this factory.booleanTests for equality.Returns an object description for a class.Returns an iterator the provides access to all the factories in the collection.Returns an iterator that provices access to the registered classes.getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass) Returns an object-description for the super class of a class.inthashCode()Returns a hash code for the object.Methods inherited from class org.jfree.xml.factory.objects.ClassFactoryImpl
getComparator, getConfig, registerClass
-
Constructor Details
-
ClassFactoryCollector
public ClassFactoryCollector()Creates a new class factory collector.
-
-
Method Details
-
addFactory
Adds a class factory to the collection.- Parameters:
factory- the factory.
-
getFactories
Returns an iterator the provides access to all the factories in the collection.- Returns:
- The iterator.
-
getDescriptionForClass
Returns an object description for a class.- Specified by:
getDescriptionForClassin interfaceClassFactory- Overrides:
getDescriptionForClassin classClassFactoryImpl- Parameters:
c- the class.- Returns:
- The object description.
-
getSuperClassObjectDescription
Returns an object-description for the super class of a class.- Specified by:
getSuperClassObjectDescriptionin interfaceClassFactory- Overrides:
getSuperClassObjectDescriptionin classClassFactoryImpl- Parameters:
d- the class.knownSuperClass- the last known super class or null.- Returns:
- The object description.
-
getRegisteredClasses
Returns an iterator that provices access to the registered classes.- Specified by:
getRegisteredClassesin interfaceClassFactory- Overrides:
getRegisteredClassesin classClassFactoryImpl- Returns:
- The iterator.
-
configure
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:
configurein interfaceClassFactory- Overrides:
configurein classClassFactoryImpl- Parameters:
config- the configuration, never null
-
equals
Tests for equality.- Specified by:
equalsin interfaceClassFactory- Overrides:
equalsin classClassFactoryImpl- Parameters:
o- the object to test.- Returns:
- A boolean.
-
hashCode
Returns a hash code for the object.- Specified by:
hashCodein interfaceClassFactory- Overrides:
hashCodein classClassFactoryImpl- Returns:
- The hash code.
-