Class ClassFactoryCollector
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryCollector
-
- All Implemented Interfaces:
Serializable
,ClassFactory
public class ClassFactoryCollector extends ClassFactoryImpl
A class factory collector.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassFactoryCollector()
Creates a new class factory collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFactory(ClassFactory factory)
Adds a class factory to the collection.void
configure(org.pentaho.reporting.libraries.base.config.Configuration config)
Configures this factory.boolean
equals(Object o)
Tests for equality.ObjectDescription
getDescriptionForClass(Class c)
Returns an object description for a class.Iterator
getFactories()
Returns an iterator the provides access to all the factories in the collection.Iterator
getRegisteredClasses()
Returns an iterator that provices access to the registered classes.ObjectDescription
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.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
getConfig, registerClass
-
-
-
-
Method Detail
-
addFactory
public void addFactory(ClassFactory factory)
Adds a class factory to the collection.- Parameters:
factory
- the factory.
-
getFactories
public Iterator getFactories()
Returns an iterator the provides access to all the factories in the collection.- Returns:
- The iterator.
-
getDescriptionForClass
public ObjectDescription getDescriptionForClass(Class c)
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
public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
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
public Iterator getRegisteredClasses()
Returns an iterator that provices access to the registered classes.- Specified by:
getRegisteredClasses
in interfaceClassFactory
- Overrides:
getRegisteredClasses
in classClassFactoryImpl
- Returns:
- The iterator.
-
configure
public void configure(org.pentaho.reporting.libraries.base.config.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 interfaceClassFactory
- Overrides:
configure
in classClassFactoryImpl
- Parameters:
config
- the configuration, never null
-
equals
public boolean equals(Object o)
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.
-
-