1 package org.objectweb.celtix.tools.common.toolspec; 2 3 import java.io.*; 4 import org.w3c.dom.Document ; 5 import org.objectweb.celtix.tools.common.ToolException; 6 public interface ToolContext { 7 8 12 InputStream getInputStream(String id) throws ToolException; 13 14 17 InputStream getInputStream() throws ToolException; 18 19 23 Document getInputDocument(String id) throws ToolException; 24 25 29 Document getInputDocument() throws ToolException; 30 31 OutputStream getOutputStream(String id) throws ToolException; 32 33 OutputStream getOutputStream() throws ToolException; 34 35 String getParameter(String name) throws ToolException; 36 37 String [] getParameters(String name) throws ToolException; 38 39 boolean hasParameter(String name) throws ToolException; 40 41 void sendDocument(String id, Document doc); 42 43 void sendDocument(Document doc); 44 45 void executePipeline(); 46 47 void setUserObject(String key, Object o); 48 49 Object getUserObject(String key); 50 51 } 52 | Popular Tags |