public class TypeMappingRegistryImpl extends Object implements TypeMappingRegistry
Constructor and Description |
---|
TypeMappingRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all registered TypeMappings and encodingStyleURIs from this TypeMappingRegistry.
|
TypeMapping |
createTypeMapping()
Creates a new empty TypeMapping object.
|
TypeMapping |
getDefaultTypeMapping()
Gets the registered default TypeMapping instance.
|
String[] |
getRegisteredEncodingStyleURIs()
Returns a list of registered encodingStyle URIs in this TypeMappingRegistry instance.
|
TypeMapping |
getTypeMapping(String encodingStyleURI)
Returns the registered TypeMapping for the specified encodingStyle URI.
|
TypeMapping |
register(String encodingStyleURI,
TypeMapping mapping)
Registers a TypeMapping instance with the TypeMappingRegistry.
|
void |
registerDefault(TypeMapping mapping)
Registers the TypeMapping instance that is default for all encoding styles supported by the TypeMappingRegistry.
|
boolean |
removeTypeMapping(TypeMapping mapping)
Removes a TypeMapping from the TypeMappingRegistry.
|
TypeMapping |
unregisterTypeMapping(String encodingStyleURI)
Unregisters a TypeMapping instance, if present, from the specified encodingStyleURI.
|
public void clear()
clear
in interface TypeMappingRegistry
public TypeMapping getDefaultTypeMapping()
getDefaultTypeMapping
in interface TypeMappingRegistry
public void registerDefault(TypeMapping mapping)
registerDefault
in interface TypeMappingRegistry
mapping
- TypeMapping instanceJAXRPCException
- If there is an error in the registration of the default TypeMappingpublic TypeMapping createTypeMapping()
createTypeMapping
in interface TypeMappingRegistry
public TypeMapping getTypeMapping(String encodingStyleURI)
getTypeMapping
in interface TypeMappingRegistry
encodingStyleURI
- Encoding style specified as an URIpublic String[] getRegisteredEncodingStyleURIs()
getRegisteredEncodingStyleURIs
in interface TypeMappingRegistry
public TypeMapping register(String encodingStyleURI, TypeMapping mapping)
register
in interface TypeMappingRegistry
encodingStyleURI
- An encoding style specified as an URI.mapping
- TypeMapping instanceJAXRPCException
- If there is an error in the registration of the TypeMapping for the specified encodingStyleURI.public TypeMapping unregisterTypeMapping(String encodingStyleURI)
unregisterTypeMapping
in interface TypeMappingRegistry
encodingStyleURI
- Encoding style specified as an URIpublic boolean removeTypeMapping(TypeMapping mapping)
removeTypeMapping
in interface TypeMappingRegistry
mapping
- TypeMapping to be removedCopyright © 2014 JBoss by Red Hat. All Rights Reserved.