View Javadoc

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