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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFactory
(ClassFactory factory) Adds a class factory to the collection.void
configure
(Configuration config) Configures this factory.boolean
Tests 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.int
hashCode()
Returns a hash code for the object.Methods inherited from class org.jfree.xml.factory.objects.ClassFactoryImpl
getComparator, getConfig, registerClass
-
Field Details
-
factories
Storage for the class factories.
-
-
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:
getDescriptionForClass
in interfaceClassFactory
- Overrides:
getDescriptionForClass
in classClassFactoryImpl
- Parameters:
c
- the class.- Returns:
- The object description.
-
getSuperClassObjectDescription
Returns an object-description for the super class of a class.- Specified by:
getSuperClassObjectDescription
in interfaceClassFactory
- Overrides:
getSuperClassObjectDescription
in 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:
getRegisteredClasses
in interfaceClassFactory
- Overrides:
getRegisteredClasses
in 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:
configure
in interfaceClassFactory
- Overrides:
configure
in classClassFactoryImpl
- Parameters:
config
- the configuration, never null
-
equals
Tests for equality.- Specified by:
equals
in interfaceClassFactory
- Overrides:
equals
in classClassFactoryImpl
- Parameters:
o
- the object to test.- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code for the object.- Specified by:
hashCode
in interfaceClassFactory
- Overrides:
hashCode
in classClassFactoryImpl
- Returns:
- The hash code.
-