org.opentox.interfaces
Interface IFeature

All Superinterfaces:
IProne2Error
All Known Implementing Classes:
Feature

public interface IFeature
extends IProne2Error

Author:
chung

Method Summary
 void createNewFeature(java.lang.String sameAs, java.io.OutputStream output)
          Creates a new Feature and writes it to an OutputStream.
 org.restlet.data.Response createNewFeature(java.lang.String sameAs, java.net.URI featureService)
          Generates a new Feature and POSTs it to a feature service
 
Methods inherited from interface org.opentox.interfaces.IProne2Error
getErrorRep
 

Method Detail

createNewFeature

void createNewFeature(java.lang.String sameAs,
                      java.io.OutputStream output)
Creates a new Feature and writes it to an OutputStream.

Parameters:
sameAs - Declares a same-as relationship between this feature and some other feature.
output - Outputstream used to write the output.

createNewFeature

org.restlet.data.Response createNewFeature(java.lang.String sameAs,
                                           java.net.URI featureService)
                                           throws org.restlet.resource.ResourceException,
                                                  java.io.IOException
Generates a new Feature and POSTs it to a feature service

Parameters:
sameAs - Declares a same-as relationship between this feature and some other feature.
featureService - Some feature service where the generated feature should be stored.
Returns:
The response of the feature service to the request for feature creation.
Throws:
org.restlet.resource.ResourceException
java.io.IOException