org.opentox.formatters
Class AbstractAlgorithmFormatter

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.formatters.AbstractAlgorithmFormatter
All Implemented Interfaces:
IFormatter, IProne2Error
Direct Known Subclasses:
AlgorithmJsonFormatter, AlgorithmRdfFormatter, AlgorithmXmlFormatter, AlgorithmYamlFormatter

public abstract class AbstractAlgorithmFormatter
extends ErrorSource
implements IFormatter

Author:
OpenTox - http://www.opentox.org, Sopasakis Pantelis, Sarimveis Harry

Field Summary
 AlgorithmMeta metainf
           
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
AbstractAlgorithmFormatter()
          Constructor of the Abstract Formater.
 
Method Summary
abstract  org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
          Returns the Corresponding Representation.
 
Methods inherited from class org.opentox.error.ErrorSource
getErrorRep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metainf

public AlgorithmMeta metainf
Constructor Detail

AbstractAlgorithmFormatter

public AbstractAlgorithmFormatter()
Constructor of the Abstract Formater.

Method Detail

getRepresentation

public abstract org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
Returns the Corresponding Representation.

Specified by:
getRepresentation in interface IFormatter
Returns:
representation in proper media type.