View Javadoc

1   package net.sf.tomp.xml.type;
2   
3   import java.util.*;
4   
5   /***
6    * DOCUMENT ME!
7    * 
8    * @author $author$
9    * @version $Revision$
10   */
11  public class Transformations {
12      /*** DOCUMENT ME! */
13      protected Map transformations = new HashMap();
14  
15      /***
16       * DOCUMENT ME!
17       * 
18       * @return DOCUMENT ME!
19       */
20      public Iterator typesIterator() {
21          return transformations.keySet().iterator();
22      }
23  
24      /***
25       * DOCUMENT ME!
26       * 
27       * @param t DOCUMENT ME!
28       * @return DOCUMENT ME!
29       */
30      public TransformationsFromType getTransformationsFrom(Type t) {
31          return (TransformationsFromType) transformations.get(t);
32      }
33  
34      /***
35       * DOCUMENT ME!
36       * 
37       * @param ts DOCUMENT ME!
38       */
39      public void putTransformationsFrom(TransformationsFromType ts) {
40          transformations.put(ts.typ, ts);
41      }
42  }
43  
44  /*
45   * The contents of this file are subject to the Mozilla Public License Version
46   * 1.1 (the "License"); you may not use this file except in compliance with the
47   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
48   * Software distributed under the License is distributed on an "AS IS" basis,
49   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
50   * the specific language governing rights and limitations under the License. The
51   * Original Code is: all this file. The Initial Developer of the Original Code
52   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
53   */