org.jfree.report.modules.parser.ext.factory.datasource
Class AbstractDataSourceFactory
java.lang.Object
|
+--org.jfree.xml.factory.objects.ClassFactoryImpl
|
+--org.jfree.report.modules.parser.ext.factory.datasource.AbstractDataSourceFactory
- 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
- See Also:
- Serialized Form
|
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,
equals,
getComparator,
getConfig,
getDescriptionForClass,
getRegisteredClasses,
getSuperClassObjectDescription,
hashCode,
registerClass |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbstractDataSourceFactory
public AbstractDataSourceFactory()
- Creates a new factory.
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.