View Javadoc

1   package net.sf.tomp.xtcl.filter;
2   
3   import net.sf.tomp.xtcl.Context;
4   
5   import org.xml.sax.XMLFilter;
6   
7   import javax.xml.transform.Templates;
8   import javax.xml.transform.TransformerConfigurationException;
9   
10  /***
11   * DOCUMENT ME!
12   * 
13   * @author tomp
14   */
15  public interface XTFilterFactory {
16      /***
17       * DOCUMENT ME!
18       * 
19       * @param className DOCUMENT ME!
20       * @return DOCUMENT ME!
21       * @throws ClassNotFoundException DOCUMENT ME!
22       * @throws InstantiationException DOCUMENT ME!
23       * @throws IllegalAccessException DOCUMENT ME!
24       */
25      XMLFilter newXMLFilter(String className) throws ClassNotFoundException,
26              InstantiationException, IllegalAccessException;
27  
28      /***
29       * DOCUMENT ME!
30       * 
31       * @param systemId DOCUMENT ME!
32       * @return DOCUMENT ME!
33       * @throws TransformerConfigurationException DOCUMENT ME!
34       */
35      Templates newTemplates(String systemId)
36              throws TransformerConfigurationException;
37  
38      /***
39       * DOCUMENT ME!
40       * 
41       * @param systemId DOCUMENT ME!
42       * @return DOCUMENT ME!
43       * @throws TransformerConfigurationException DOCUMENT ME!
44       */
45      Templates newJoostTemplates(String systemId)
46              throws TransformerConfigurationException;
47  
48      /***
49       * DOCUMENT ME!
50       * 
51       * @param templates DOCUMENT ME!
52       * @return DOCUMENT ME!
53       * @throws TransformerConfigurationException DOCUMENT ME!
54       */
55      XMLFilter newTransformerFilter(Templates templates)
56              throws TransformerConfigurationException;
57  
58      /***
59       * DOCUMENT ME!
60       * 
61       * @param systemId DOCUMENT ME!
62       * @return DOCUMENT ME!
63       * @throws TransformerConfigurationException DOCUMENT ME!
64       */
65      XMLFilter newTransformerFilter(String systemId)
66              throws TransformerConfigurationException;
67  
68      /***
69       * DOCUMENT ME!
70       * 
71       * @param templates DOCUMENT ME!
72       * @return DOCUMENT ME!
73       * @throws TransformerConfigurationException DOCUMENT ME!
74       */
75      XMLFilter newJoostFilter(Templates templates)
76              throws TransformerConfigurationException;
77  
78      /***
79       * DOCUMENT ME!
80       * 
81       * @param systemId DOCUMENT ME!
82       * @return DOCUMENT ME!
83       * @throws TransformerConfigurationException DOCUMENT ME!
84       */
85      XMLFilter newJoostFilter(String systemId)
86              throws TransformerConfigurationException;
87  
88      /***
89       * DOCUMENT ME!
90       * 
91       * @return DOCUMENT ME!
92       * @throws TransformerConfigurationException DOCUMENT ME!
93       */
94      TeeFilter newTeeFilter() throws TransformerConfigurationException;
95  
96      /***
97       * DOCUMENT ME!
98       * 
99       * @return DOCUMENT ME!
100      */
101     Context getContext();
102     
103     void setContext(Context context);
104 }
105 
106 /*
107  * The contents of this file are subject to the Mozilla Public License Version
108  * 1.1 (the "License"); you may not use this file except in compliance with the
109  * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
110  * Software distributed under the License is distributed on an "AS IS" basis,
111  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
112  * the specific language governing rights and limitations under the License. The
113  * Original Code is: all this file. The Initial Developer of the Original Code
114  * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
115  */