View Javadoc

1   package net.sf.tomp.xml.type;
2   
3   /***
4    * DOCUMENT ME!
5    * 
6    * @author $author$
7    * @version $Revision$
8    */
9   public interface TypeDatabase {
10      // types
11      Type getTypeForRootElement(String ns, String localName);
12  
13      /***
14       * DOCUMENT ME!
15       * 
16       * @param name DOCUMENT ME!
17       * @param dtPublic DOCUMENT ME!
18       * @param dtSystem DOCUMENT ME!
19       * @return DOCUMENT ME!
20       */
21      Type getTypeForDoctype(String name, String dtPublic, String dtSystem);
22  
23      /***
24       * DOCUMENT ME!
25       * 
26       * @param identification DOCUMENT ME!
27       * @return DOCUMENT ME!
28       */
29      Type getType(String identification);
30  
31      // transformations
32      //void addTransformation(Type source, Type target, TypeTransformation t);
33      void addTransformation(Type source, Type target, Variant v,
34              TypeTransformation t);
35  
36      //TypeTransformation getTransformation(Type source, Type target);
37      TypeTransformation getTransformation(Type source, Type target, Variant v);
38  
39      /***
40       * DOCUMENT ME!
41       * 
42       * @param source DOCUMENT ME!
43       * @param target DOCUMENT ME!
44       * @param variant DOCUMENT ME!
45       * @return DOCUMENT ME!
46       */
47      java.util.List getTransformationSequence(Type source, Type target,
48              Variant variant);
49  
50      /***
51       * DOCUMENT ME!
52       * 
53       * @return DOCUMENT ME!
54       */
55      Transformations getTransformations();
56  }
57  
58  /*
59   * The contents of this file are subject to the Mozilla Public License Version
60   * 1.1 (the "License"); you may not use this file except in compliance with the
61   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
62   * Software distributed under the License is distributed on an "AS IS" basis,
63   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
64   * the specific language governing rights and limitations under the License. The
65   * Original Code is: all this file. The Initial Developer of the Original Code
66   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
67   */