javax.xml.rpc.encoding
Interface TypeMappingRegistry

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
TypeMappingRegistry

public interface TypeMappingRegistry
extends java.io.Serializable

The interface javax.xml.rpc.encoding.TypeMappingRegistry defines a registry for TypeMapping instances for the different encoding styles.

Version:
0.7

Method Summary
 void clear(java.lang.String namespaceURI)
          Removes all registered TypeMappings from the registery
 TypeMapping createTypeMapping()
          Creates a new empty TypeMapping object for the specified encoding style or XML schema namespace.
 TypeMapping getDefaultTypeMapping()
          Return the default TypeMapping
 java.lang.String[] getRegisteredNamespaces()
          Gets a list of namespace URIs registered with this TypeMappingRegistry.
 TypeMapping getTypeMapping(java.lang.String namespaceURI)
          Gets the TypeMapping namespace.
 void register(java.lang.String namespace, TypeMapping maping)
          The method register adds a TypeMapping instance for a specific namespace
 void registerDefault(TypeMapping mapping)
          The method register adds a default TypeMapping instance.
 boolean removeTypeMapping(TypeMapping namespaceURI)
          Remove TypeMapping by unregistering it from all namespaces.
 TypeMapping unregisterTypeMapping(java.lang.String namespaceURI)
          Unregisters the TypeMapping for the namespace.
 

Method Detail

register

public void register(java.lang.String namespace,
                     TypeMapping maping)
              throws JAXRPCException
The method register adds a TypeMapping instance for a specific namespace
Parameters:
namespaceURI -  
mapping - - TypeMapping for specific type namespaces
Throws:
JAXRPCException - - If there is any error in the registration of the TypeMapping for the specified namespace URI java.lang.IllegalArgumentException - if an invalid namespace URI is specified

registerDefault

public void registerDefault(TypeMapping mapping)
                     throws JAXRPCException
The method register adds a default TypeMapping instance. If a specific TypeMapping is not found, the default TypeMapping is used.
Parameters:
mapping - - TypeMapping for specific type namespaces
Throws:
JAXRPCException - - If there is any error in the registration of the TypeMapping for the specified namespace URI java.lang.IllegalArgumentException - if an invalid namespace URI is specified

getDefaultTypeMapping

public TypeMapping getDefaultTypeMapping()
Return the default TypeMapping
Returns:
TypeMapping or null

getTypeMapping

public TypeMapping getTypeMapping(java.lang.String namespaceURI)
Gets the TypeMapping namespace. If not found, the default TypeMapping is returned.
Parameters:
namespaceURI - - The namespace URI
Returns:
The registered TypeMapping (which may be the default TypeMapping) or null.

unregisterTypeMapping

public TypeMapping unregisterTypeMapping(java.lang.String namespaceURI)
Unregisters the TypeMapping for the namespace.
Parameters:
namespaceURI - - The namespace URI
Returns:
The registered TypeMapping or null.

removeTypeMapping

public boolean removeTypeMapping(TypeMapping namespaceURI)
Remove TypeMapping by unregistering it from all namespaces.
Parameters:
mapping - - The mapping to remove
Returns:
true if found and removed. false if not found

createTypeMapping

public TypeMapping createTypeMapping()
Creates a new empty TypeMapping object for the specified encoding style or XML schema namespace.
Returns:
An empty generic TypeMapping object

getRegisteredNamespaces

public java.lang.String[] getRegisteredNamespaces()
Gets a list of namespace URIs registered with this TypeMappingRegistry.
Returns:
String[] containing names of all registered namespace URIs

clear

public void clear(java.lang.String namespaceURI)
Removes all registered TypeMappings from the registery


Copyright © 2001 Apache XML Project. All Rights Reserved.