net.sourceforge.esw.collection
Class DefaultTransducer
java.lang.Object
|
+--net.sourceforge.esw.collection.ATransducer
|
+--net.sourceforge.esw.collection.DefaultTransducer
- All Implemented Interfaces:
- ITransducer, java.io.Serializable
- public class DefaultTransducer
- extends ATransducer
- implements ITransducer
The default implementation of the ITransducer interface that
throws TransducerExceptions if get() or
put are invoked.
This transduction occurs both ways; put() takes data
from the IMetaCollection instance to which this
ITransducer instance is attached and places it into the data
source represented by this ITransducer instance. The
get() method takes data from the data source represented by this
ITransducer instance and places it into the
IMetaCollection instance to which this ITransducer
instance is attached.
This DefaultTransducer is the default ITransducer
instance for all IMetaCollection instances upon creation. The
default get() and put() methods throw a
TransducerException when they are invoked.
- See Also:
- Serialized Form
|
Method Summary |
void |
get(IMetaCollection aCollection)
Gets the data source's data represented by this ITransducer
instance into the referenced IMetaCollection instance. |
void |
put(IMetaCollection aCollection)
Puts the referenced IMetaCollection instance's data into the
data source represented by this ITransducer instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransducer
public DefaultTransducer()
get
public void get(IMetaCollection aCollection)
throws TransducerException
- Gets the data source's data represented by this
ITransducer
instance into the referenced IMetaCollection instance.
This implementation throws a TransducerException upon each
invocation.
- Specified by:
get in interface ITransducer
- Parameters:
aCollection - the IMetaCollection instance into which to read.- Throws:
TransducerException - if this method is invoked.- See Also:
put( IMetaCollection )
put
public void put(IMetaCollection aCollection)
throws TransducerException
- Puts the referenced
IMetaCollection instance's data into the
data source represented by this ITransducer instance.
This implementation throws a TransducerException upon each
invocation.
- Specified by:
put in interface ITransducer
- Parameters:
aCollection - the IMetaCollection instance from which to take data.- Throws:
TransducerException - if this method is invoked.- See Also:
get( IMetaCollection )
Copyright 2002 Free Software Foundation. All Rights Reserved.