public class ClassFactoryCollector extends ClassFactoryImpl
Constructor and Description |
---|
ClassFactoryCollector()
Creates a new class factory collector.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(ClassFactory factory)
Adds a class factory to the collection.
|
void |
configure(Configuration config)
Configures this factory.
|
boolean |
equals(java.lang.Object o)
Tests for equality.
|
ObjectDescription |
getDescriptionForClass(java.lang.Class c)
Returns an object description for a class.
|
java.util.Iterator |
getFactories()
Returns an iterator the provides access to all the factories in the collection.
|
java.util.Iterator |
getRegisteredClasses()
Returns an iterator that provices access to the registered classes.
|
ObjectDescription |
getSuperClassObjectDescription(java.lang.Class d,
ObjectDescription knownSuperClass)
Returns an object-description for the super class of a class.
|
int |
hashCode()
Returns a hash code for the object.
|
getComparator, getConfig, registerClass
public ClassFactoryCollector()
public void addFactory(ClassFactory factory)
factory
- the factory.public java.util.Iterator getFactories()
public ObjectDescription getDescriptionForClass(java.lang.Class c)
getDescriptionForClass
in interface ClassFactory
getDescriptionForClass
in class ClassFactoryImpl
c
- the class.public ObjectDescription getSuperClassObjectDescription(java.lang.Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
getSuperClassObjectDescription
in class ClassFactoryImpl
d
- the class.knownSuperClass
- the last known super class or null.public java.util.Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
getRegisteredClasses
in class ClassFactoryImpl
public void configure(Configuration config)
The configuration contents may change during the reporting.
configure
in interface ClassFactory
configure
in class ClassFactoryImpl
config
- the configuration, never nullpublic boolean equals(java.lang.Object o)
equals
in interface ClassFactory
equals
in class ClassFactoryImpl
o
- the object to test.public int hashCode()
hashCode
in interface ClassFactory
hashCode
in class ClassFactoryImpl