Class ClassFactoryImpl
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
-
- All Implemented Interfaces:
Serializable
,ClassFactory
- Direct Known Subclasses:
AbstractDataSourceFactory
,BandLayoutClassFactory
,ClassFactoryCollector
,ExtraShapesClassFactory
,JavaBaseClassFactory
,TemplateClassFactory
,URLClassFactory
public abstract class ClassFactoryImpl extends Object implements ClassFactory
An abstract class that implements theClassFactory
interface.- Author:
- Thomas Morgner.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClassFactoryImpl()
Creates a new class factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.pentaho.reporting.libraries.base.config.Configuration config)
Configures this factory.boolean
equals(Object o)
Tests for equality.org.pentaho.reporting.libraries.base.config.Configuration
getConfig()
Returns the currently set configuration or null, if none was set.ObjectDescription
getDescriptionForClass(Class c)
Returns an object-description for a class.Iterator
getRegisteredClasses()
Returns an iterator that provides access to the registered object definitions.ObjectDescription
getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns the most concrete object-description for the super class of a class.int
hashCode()
Returns a hash code.protected void
registerClass(Class key, ObjectDescription od)
Registers an object description with the factory.
-
-
-
Method Detail
-
getDescriptionForClass
public ObjectDescription getDescriptionForClass(Class c)
Returns an object-description for a class.- Specified by:
getDescriptionForClass
in interfaceClassFactory
- Parameters:
c
- the class.- Returns:
- An object description.
-
getSuperClassObjectDescription
public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
Returns the most concrete object-description for the super class of a class.- Specified by:
getSuperClassObjectDescription
in interfaceClassFactory
- Parameters:
d
- the class.knownSuperClass
- a known supported superclass or null, if no superclass is known yet.- Returns:
- The object description.
-
registerClass
protected void registerClass(Class key, ObjectDescription od)
Registers an object description with the factory.- Parameters:
key
- the key.od
- the object description.
-
getRegisteredClasses
public Iterator getRegisteredClasses()
Returns an iterator that provides access to the registered object definitions.- Specified by:
getRegisteredClasses
in interfaceClassFactory
- 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
- Parameters:
config
- the configuration, never null
-
getConfig
public org.pentaho.reporting.libraries.base.config.Configuration getConfig()
Returns the currently set configuration or null, if none was set.- Returns:
- the configuration.
-
equals
public boolean equals(Object o)
Tests for equality.- Specified by:
equals
in interfaceClassFactory
- Overrides:
equals
in classObject
- Parameters:
o
- the object to test.- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code.- Specified by:
hashCode
in interfaceClassFactory
- Overrides:
hashCode
in classObject
- Returns:
- A hash code.
-
-