org.opentox.formatters
Class ModelFormatter

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.formatters.AbstractModelFormatter
          extended by org.opentox.formatters.ModelFormatter
All Implemented Interfaces:
IFormatter, IProne2Error

public class ModelFormatter
extends AbstractModelFormatter

Reads a stored or online model (in RDF format) and returns it in a prefered MIME type (format).

Author:
Sopasakis Pantelis

Field Summary
 
Fields inherited from class org.opentox.formatters.AbstractModelFormatter
model_id
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
ModelFormatter(int model_id)
           
 
Method Summary
 org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
           
 
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
 

Constructor Detail

ModelFormatter

public ModelFormatter(int model_id)
Method Detail

getRepresentation

public org.restlet.representation.Representation getRepresentation(org.restlet.data.MediaType mediatype)
Specified by:
getRepresentation in interface IFormatter
Specified by:
getRepresentation in class AbstractModelFormatter