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