ambit2.core.processors
Class AbstractRepresentationConvertor<Item,Content,Output,R,Media,ItemReporter extends ambit2.base.processors.Reporter<Content,Output>>

Package class diagram package AbstractRepresentationConvertor
java.lang.Object
  extended by ambit2.base.processors.DefaultAmbitProcessor<Content,R>
      extended by ambit2.core.processors.AbstractRepresentationConvertor<Item,Content,Output,R,Media,ItemReporter>
Type Parameters:
Item -
Content -
Output -
R -
Media -
ItemReporter -
All Implemented Interfaces:
ambit2.base.interfaces.IProcessor<Content,R>, java.io.Serializable

public abstract class AbstractRepresentationConvertor<Item,Content,Output,R,Media,ItemReporter extends ambit2.base.processors.Reporter<Content,Output>>
extends ambit2.base.processors.DefaultAmbitProcessor<Content,R>

An abstract IProcessor , converting between arbitrary Content and arbitrary Representation.

See Also:
Serialized Form

Field Summary
protected  Media mediaType
           
protected  ItemReporter reporter
           
 
Fields inherited from class ambit2.base.processors.DefaultAmbitProcessor
enabled, logger, propertyChangeSupport
 
Constructor Summary
AbstractRepresentationConvertor(ItemReporter reporter)
           
AbstractRepresentationConvertor(ItemReporter reporter, Media media)
           
 
Method Summary
 Media getMediaType()
           
 ItemReporter getReporter()
           
abstract  R process(Content query)
           
 void setMediaType(Media mediaType)
           
 void setReporter(ItemReporter reporter)
           
 
Methods inherited from class ambit2.base.processors.DefaultAmbitProcessor
addPropertyChangeListener, addPropertyChangeListener, getID, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reporter

protected ItemReporter extends ambit2.base.processors.Reporter<Content,Output> reporter

mediaType

protected Media mediaType
Constructor Detail

AbstractRepresentationConvertor

public AbstractRepresentationConvertor(ItemReporter reporter)

AbstractRepresentationConvertor

public AbstractRepresentationConvertor(ItemReporter reporter,
                                       Media media)
Method Detail

getMediaType

public Media getMediaType()

setMediaType

public void setMediaType(Media mediaType)

getReporter

public ItemReporter getReporter()

setReporter

public void setReporter(ItemReporter reporter)

process

public abstract R process(Content query)
                   throws ambit2.base.exceptions.AmbitException
Throws:
ambit2.base.exceptions.AmbitException