com.jrefinery.report.io.ext.factory.datasource
Class AbstractDataSourceFactory

java.lang.Object
  |
  +--org.jfree.xml.factory.objects.ClassFactoryImpl
        |
        +--com.jrefinery.report.io.ext.factory.datasource.AbstractDataSourceFactory
All Implemented Interfaces:
org.jfree.xml.factory.objects.ClassFactory, DataSourceFactory
Direct Known Subclasses:
DefaultDataSourceFactory

public abstract class AbstractDataSourceFactory
extends org.jfree.xml.factory.objects.ClassFactoryImpl
implements DataSourceFactory

A base class for implementing the DataSourceFactory interface.

Author:
Thomas Morgner

Constructor Summary
AbstractDataSourceFactory()
          Creates a new factory.
 
Method Summary
 org.jfree.xml.factory.objects.ObjectDescription getDataSourceDescription(java.lang.String name)
          Returns a data source description.
 java.lang.String getDataSourceName(org.jfree.xml.factory.objects.ObjectDescription od)
          Returns a data source name given a description.
 java.util.Iterator getRegisteredNames()
          Returns the names of all registered datasources as iterator.
 void registerDataSources(java.lang.String name, org.jfree.xml.factory.objects.ObjectDescription o)
          Registers a data source.
 
Methods inherited from class org.jfree.xml.factory.objects.ClassFactoryImpl
configure, getComparator, getConfig, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription, registerClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.xml.factory.objects.ClassFactory
configure, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription
 

Constructor Detail

AbstractDataSourceFactory

public AbstractDataSourceFactory()
Creates a new factory.

Method Detail

registerDataSources

public void registerDataSources(java.lang.String name,
                                org.jfree.xml.factory.objects.ObjectDescription o)
Registers a data source.

Parameters:
name - the name.
o - the object description.

getDataSourceDescription

public org.jfree.xml.factory.objects.ObjectDescription getDataSourceDescription(java.lang.String name)
Returns a data source description.

Specified by:
getDataSourceDescription in interface DataSourceFactory
Parameters:
name - the data source name.
Returns:
The object description.

getDataSourceName

public java.lang.String getDataSourceName(org.jfree.xml.factory.objects.ObjectDescription od)
Returns a data source name given a description.

Specified by:
getDataSourceName in interface DataSourceFactory
Parameters:
od - the object description.
Returns:
The name.

getRegisteredNames

public java.util.Iterator getRegisteredNames()
Returns the names of all registered datasources as iterator.

Specified by:
getRegisteredNames in interface DataSourceFactory
Returns:
the registered names.