|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.esw.collection.ATransducerAdapter
Provides abstract base class abilities for Transducer Adapters.
ATransducerAdapter
extenders should focus on the implementation
of the specific element they are adapting. This base class encapsulates all
the required methods and attributes.
All ATransducerAdapter
instances delelate their get
and put
methods to a previously set IIOTransducer
instance. They also delegate the setContextFactory
and
getContextFactory
method invocations to the contained
IIOTransducer
instance.
Field Summary | |
protected IIOTransducer |
ioTransducer
The IIOTransducer instance to which ITransducer
implemented method invocations are delegated. |
Constructor Summary | |
ATransducerAdapter()
Creates a new ATransducerAdapter instance. |
|
ATransducerAdapter(IIOTransducer aIIOTransducer)
Creates a new ATransducerAdapter instance, delegating
ITransducer implemented method invocations to the specified
IIOTransducer instance. |
Method Summary | |
abstract void |
get(IMetaCollection aCollection)
Gets the data source's data represented by this ITransducer
instance into the referenced IMetaCollection instance. |
INodeContextFactory |
getContextFactory()
Returns the INodeContextFactory instance used by this
ITransducer instance during get operations. |
IIOTransducer |
getIOTranducer()
Returns the IIOTransducer instance for this
ATransducerAdapter instance. |
abstract void |
put(IMetaCollection aCollection)
Puts the referenced IMetaCollection instance's data into the
data source represented by this ITransducer instance. |
void |
setContextFactory(INodeContextFactory aContextFactory)
Sets the INodeContextFactory instance to be used by this
ITransducer instance during get operations. |
void |
setIOTransducer(IIOTransducer aIIOTransducer)
Sets the IIOTransducer instance to which
ITransducer implemented method invocations are delegated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IIOTransducer ioTransducer
IIOTransducer
instance to which ITransducer
implemented method invocations are delegated.Constructor Detail |
public ATransducerAdapter()
ATransducerAdapter
instance.public ATransducerAdapter(IIOTransducer aIIOTransducer)
ATransducerAdapter
instance, delegating
ITransducer
implemented method invocations to the specified
IIOTransducer
instance.aIIOTransducer
- the IIOTransducer
instance to which to
delegate.Method Detail |
public void setIOTransducer(IIOTransducer aIIOTransducer)
IIOTransducer
instance to which
ITransducer
implemented method invocations are delegated.aIIOTransducer
- the IIOTransducer
instance to which to delegate.public IIOTransducer getIOTranducer()
IIOTransducer
instance for this
ATransducerAdapter
instance.public void setContextFactory(INodeContextFactory aContextFactory)
INodeContextFactory
instance to be used by this
ITransducer
instance during get
operations.
Before this method is invoked, an IIOTransducer
instance must
be set on this ATransducerAdapter
instance via the
setIOTransducer
method.setContextFactory
in interface ITransducer
aContextFactory
- the INodeContextFactory
instance from
which to take data.java.lang.RuntimeException
- if the IIOTransducer
instance has not
been set on this ATransducerAdapter
instance.getContextFactory()
public INodeContextFactory getContextFactory()
INodeContextFactory
instance used by this
ITransducer
instance during get
operations.getContextFactory
in interface ITransducer
INodeContextFactory
instance utilitied by this
ITransducer
instance.setContextFactory( INodeContextFactory )
public abstract void get(IMetaCollection aCollection) throws TransducerException
ITransducer
instance into the referenced IMetaCollection
instance.get
in interface ITransducer
aCollection
- the IMetaCollection
instance into which to
read.TransducerException
- if an error occurs during transduction.put( IMetaCollection )
public abstract void put(IMetaCollection aCollection) throws TransducerException
IMetaCollection
instance's data into the
data source represented by this ITransducer
instance.put
in interface ITransducer
aCollection
- the IMetaCollection
instance from which to
take data.TransducerException
- if an error occurs during transduction.get( IMetaCollection )
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |