View Javadoc

1   package net.sf.tomp.xml.type;
2   
3   import org.xml.sax.XMLFilter;
4   
5   /***
6    * DOCUMENT ME!
7    *
8    * @author $author$
9    * @version $Revision$
10   */
11  public interface TypeTransformation extends net.sf.tomp.general.Parametrized
12  {
13      /*** DOCUMENT ME! */
14      public static final TypeTransformation IDENTITY = new TypeTransformation()
15          {
16              public XMLFilter newFilter()
17              {
18                  return null;
19              }
20  
21              public double getCosts()
22              {
23                  return 0;
24              }
25  
26              public boolean isIdentity()
27              {
28                  return true;
29              }
30  
31              public void setParameter(String k, Object v)
32              {
33              }
34          };
35  
36      /***
37       * DOCUMENT ME!
38       *
39       * @return DOCUMENT ME!
40       * @throws TypeTransformationException DOCUMENT ME!
41       */
42      XMLFilter newFilter() throws TypeTransformationException;
43  
44      /***
45       * DOCUMENT ME!
46       *
47       * @return DOCUMENT ME!
48       */
49      double getCosts();
50  
51      /***
52       * DOCUMENT ME!
53       *
54       * @return DOCUMENT ME!
55       */
56      boolean isIdentity();
57  }
58  
59  
60  /*
61   * The contents of this file are subject to the Mozilla Public License Version
62   * 1.1 (the "License"); you may not use this file except in compliance with the
63   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
64   * Software distributed under the License is distributed on an "AS IS" basis,
65   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
66   * the specific language governing rights and limitations under the License. The
67   * Original Code is: all this file. The Initial Developer of the Original Code
68   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
69   */