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