org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base
Class ClassFactoryCollector

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
      extended by 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
ClassFactoryCollector()
          Creates a new class factory collector.
 
Method Summary
 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
getComparator, getConfig
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFactoryCollector

public ClassFactoryCollector()
Creates a new class factory collector.

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 interface ClassFactory
Overrides:
getDescriptionForClass in class ClassFactoryImpl
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 interface ClassFactory
Overrides:
getSuperClassObjectDescription in class ClassFactoryImpl
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 interface ClassFactory
Overrides:
getRegisteredClasses in class ClassFactoryImpl
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 interface ClassFactory
Overrides:
configure in class ClassFactoryImpl
Parameters:
config - the configuration, never null

equals

public boolean equals(Object o)
Tests for equality.

Specified by:
equals in interface ClassFactory
Overrides:
equals in class ClassFactoryImpl
Parameters:
o - the object to test.
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code for the object.

Specified by:
hashCode in interface ClassFactory
Overrides:
hashCode in class ClassFactoryImpl
Returns:
The hash code.