Top Description Methods
javax.xml.rpc.encoding

public Interface TypeMappingRegistry

extends Serializable
Imports
java.io.Serializable, javax.xml.rpc.JAXRPCException, java.util.Iterator

The interface javax.xml.rpc.encoding.TypeMappingRegistry defines a registry of TypeMapping instances for various encoding styles.
Author
Rahul Sharma
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Removes all registered TypeMappings and encodingStyleURIs from this TypeMappingRegistry.

public TypeMapping

Returns:

TypeMapping instance
createTypeMapping
()

Creates a new empty TypeMapping object.

public TypeMapping

Returns:

The registered default TypeMapping instance or null
getDefaultTypeMapping
()

Gets the registered default TypeMapping instance.

public String[]

Returns:

Array of the registered encodingStyle URIs
getRegisteredEncodingStyleURIs
()

Returns a list of registered encodingStyle URIs in this TypeMappingRegistry instance.

public TypeMapping

Returns:

TypeMapping for the specified encodingStyleURI or null
getTypeMapping
(String
Encoding style specified as an URI
encodingStyleURI
)

Returns the registered TypeMapping for the specified encodingStyle URI.

public TypeMapping

Returns:

Previous TypeMapping associated with the specified encodingStyleURI, or null if there was no TypeMapping associated with the specified encodingStyleURI
register
(String
An encoding style specified as an URI. An example is "http://schemas.xmlsoap.org/soap/encoding/"
encodingStyleURI
,
TypeMapping
TypeMapping instance
mapping
)

Registers a TypeMapping instance with the TypeMappingRegistry.

public void
registerDefault(TypeMapping
TypeMapping instance
mapping
)

Registers the TypeMapping instance that is default for all encoding styles supported by the TypeMappingRegistry.

public boolean

Returns:

true if specified TypeMapping is removed from the TypeMappingRegistry; false if the specified TypeMapping was not in the TypeMappingRegistry
removeTypeMapping
(TypeMapping
TypeMapping to be removed
mapping
)

Removes a TypeMapping from the TypeMappingRegistry.

public TypeMapping

Returns:

TypeMapping instance that has been unregistered or null if there was no TypeMapping registered for the specified encodingStyleURI
unregisterTypeMapping
(String
Encoding style specified as an URI
encodingStyleURI
)

Unregisters a TypeMapping instance, if present, from the specified encodingStyleURI.

Method Detail

clearback to summary
public void clear()

Removes all registered TypeMappings and encodingStyleURIs from this TypeMappingRegistry.

createTypeMappingback to summary
public TypeMapping createTypeMapping()

Creates a new empty TypeMapping object.

Returns:TypeMapping

TypeMapping instance

getDefaultTypeMappingback to summary
public TypeMapping getDefaultTypeMapping()

Gets the registered default TypeMapping instance. This method returns null if there is no registered default TypeMapping in the registry.

Returns:TypeMapping

The registered default TypeMapping instance or null

getRegisteredEncodingStyleURIsback to summary
public String[] getRegisteredEncodingStyleURIs()

Returns a list of registered encodingStyle URIs in this TypeMappingRegistry instance.

Returns:String[]

Array of the registered encodingStyle URIs

getTypeMappingback to summary
public TypeMapping getTypeMapping(String encodingStyleURI)

Returns the registered TypeMapping for the specified encodingStyle URI. If there is no registered TypeMapping for the specified encodingStyleURI, this method returns null.

Parameters
encodingStyleURI:String

Encoding style specified as an URI

Returns:TypeMapping

TypeMapping for the specified encodingStyleURI or null

registerback to summary
public TypeMapping register(String encodingStyleURI, TypeMapping mapping)

Registers a TypeMapping instance with the TypeMappingRegistry. This method replaces any existing registered TypeMapping instance for the specified encodingStyleURI.

Parameters
encodingStyleURI:String

An encoding style specified as an URI. An example is "http://schemas.xmlsoap.org/soap/encoding/"

mapping:TypeMapping

TypeMapping instance

Returns:TypeMapping

Previous TypeMapping associated with the specified encodingStyleURI, or null if there was no TypeMapping associated with the specified encodingStyleURI

Exceptions
JAXRPCException:
If there is an error in the registration of the TypeMapping for the specified encodingStyleURI.
registerDefaultback to summary
public void registerDefault(TypeMapping mapping)

Registers the TypeMapping instance that is default for all encoding styles supported by the TypeMappingRegistry. A default TypeMapping should include serializers and deserializers that are independent of and usable with any encoding style. Successive invocations of the registerDefault method replace any existing default TypeMapping instance.

If the default TypeMapping is registered, any other TypeMapping instances registered through the TypeMappingRegistry.register method (for a set of encodingStyle URIs) override the default TypeMapping.

Parameters
mapping:TypeMapping

TypeMapping instance

Exceptions
JAXRPCException:
If there is an error in the registration of the default TypeMapping
removeTypeMappingback to summary
public boolean removeTypeMapping(TypeMapping mapping)

Removes a TypeMapping from the TypeMappingRegistry. A TypeMapping is associated with 1 or more encodingStyleURIs. This method unregisters the specified TypeMapping instance from all associated encodingStyleURIs and then removes this TypeMapping instance from the registry.

Parameters
mapping:TypeMapping

TypeMapping to be removed

Returns:boolean

true if specified TypeMapping is removed from the TypeMappingRegistry; false if the specified TypeMapping was not in the TypeMappingRegistry

unregisterTypeMappingback to summary
public TypeMapping unregisterTypeMapping(String encodingStyleURI)

Unregisters a TypeMapping instance, if present, from the specified encodingStyleURI.

Parameters
encodingStyleURI:String

Encoding style specified as an URI

Returns:TypeMapping

TypeMapping instance that has been unregistered or null if there was no TypeMapping registered for the specified encodingStyleURI