View Javadoc

1   package org.codehaus.xfire.aegis.type;
2   
3   import javax.xml.namespace.QName;
4   
5   /***
6    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
7    * @since Feb 18, 2004
8    */
9   public interface TypeMapping
10  {
11      /***
12       * Checks whether or not type mapping between specified XML
13       * type and Java type is registered.
14       *
15       * @param javaType Class of the Java type
16       * @param xmlType Qualified name of the XML data type
17       * @return boolean; <code>true</code> if type mapping between the
18       *      specified XML type and Java type is registered;
19       *      otherwise <code>false</code>
20       */
21      public boolean isRegistered(Class javaType);
22  
23      public boolean isRegistered(QName xmlType);
24  
25      public void register(Class javaType, QName xmlType, Type type);
26  
27      public void register(Type type);
28  
29      public void removeType(Type type);
30  
31      public Type getType(Class javaType);
32  
33      public Type getType(QName xmlType);
34  
35      public QName getTypeQName(Class clazz);
36  
37      public String getEncodingStyleURI();
38  
39      public void setEncodingStyleURI(String encodingStyleURI);
40      
41      public TypeCreator getTypeCreator();
42  }