All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.xfire.aegis.type.TypeMapping Maven / Gradle / Ivy

package org.codehaus.xfire.aegis.type;

import javax.xml.namespace.QName;

/**
 * @author Dan Diephouse
 * @since Feb 18, 2004
 */
public interface TypeMapping
{
    /**
     * Checks whether or not type mapping between specified XML
     * type and Java type is registered.
     *
     * @param javaType Class of the Java type
     * @param xmlType Qualified name of the XML data type
     * @return boolean; true if type mapping between the
     *      specified XML type and Java type is registered;
     *      otherwise false
     */
    public boolean isRegistered(Class javaType);

    public boolean isRegistered(QName xmlType);

    public void register(Class javaType, QName xmlType, Type type);

    public void register(Type type);

    public void removeType(Type type);

    public Type getType(Class javaType);

    public Type getType(QName xmlType);

    public QName getTypeQName(Class clazz);

    public String getEncodingStyleURI();

    public void setEncodingStyleURI(String encodingStyleURI);
    
    public TypeCreator getTypeCreator();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy