|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.DataSourceCollector
public class DataSourceCollector
A DataSourceFactory
created from a number of other factories.
Constructor Summary | |
---|---|
DataSourceCollector()
Creates a new factory. |
Method Summary | |
---|---|
void |
addFactory(DataSourceFactory factory)
Adds a factory to the collection. |
void |
configure(org.pentaho.reporting.libraries.base.config.Configuration config)
Configures this factory. |
org.pentaho.reporting.libraries.base.config.Configuration |
getConfig()
Returns the currently set configuration or null, if none was set. |
ObjectDescription |
getDataSourceDescription(String name)
Returns a data source description. |
String |
getDataSourceName(ObjectDescription od)
Returns a data source name. |
ObjectDescription |
getDescriptionForClass(Class c)
Returns a description for the class. |
Iterator |
getFactories()
Returns an iterator that provides access to the factories. |
Iterator |
getRegisteredClasses()
Returns an iterator that provides access to the registered classes. |
Iterator |
getRegisteredNames()
Returns the names of all registered datasources as iterator. |
ObjectDescription |
getSuperClassObjectDescription(Class d,
ObjectDescription knownSuperClass)
Returns a description for the super class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactory |
---|
equals, hashCode |
Constructor Detail |
---|
public DataSourceCollector()
Method Detail |
---|
public void addFactory(DataSourceFactory factory)
factory
- the factory.public Iterator getFactories()
public ObjectDescription getDataSourceDescription(String name)
getDataSourceDescription
in interface DataSourceFactory
name
- the data source name.
public String getDataSourceName(ObjectDescription od)
getDataSourceName
in interface DataSourceFactory
od
- the object description.
public ObjectDescription getDescriptionForClass(Class c)
getDescriptionForClass
in interface ClassFactory
c
- the class.
public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
d
- the class.knownSuperClass
- the last known super class for the given class or null if none was found yet.
public Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
public void configure(org.pentaho.reporting.libraries.base.config.Configuration config)
configure
in interface ClassFactory
config
- the configuration, never nullpublic org.pentaho.reporting.libraries.base.config.Configuration getConfig()
public Iterator getRegisteredNames()
getRegisteredNames
in interface DataSourceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |