javax.xml.rpc.encoding

Interface TypeMappingRegistry

All Superinterfaces:
Serializable

public interface TypeMappingRegistry
extends Serializable

Represents a mapping registry.

Method Summary

void
clear()
Removes the registered TypeMappings.
TypeMapping
createTypeMapping()
Creates an empty type mapping.
TypeMapping
getDefaultTypeMapping()
Gets the default mapping.
String[]
getRegisteredEncodingStyleURIs()
Returns the encoding styles.
TypeMapping
getTypeMapping(String uri)
Returns the named type mapping
TypeMapping
register(String encodingStyleURI, TypeMapping mapping)
Registers a TypeMapping with an encoding style.
void
registerDefault(TypeMapping mapping)
Registers the TypeMapping as a default.
boolean
removeTypeMapping(TypeMapping mapping)
Removes a type mapping.
TypeMapping
unregisterTypeMapping(String uri)
Unregisters a type mapping.

Method Details

clear

public void clear()
Removes the registered TypeMappings.

createTypeMapping

public TypeMapping createTypeMapping()
Creates an empty type mapping.

getDefaultTypeMapping

public TypeMapping getDefaultTypeMapping()
Gets the default mapping.
Usages and Demos :

View More Examples of getDefaultTypeMapping()
   1: import javax.xml.namespace.QName;
   2: import javax.xml.rpc.encoding.TypeMappingRegistry;
   3: import javax.xml.transform.Result;
   4:         ...
   5:    {
   6:       TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
   7:         ...
   8:       typeMapping = (TypeMappingImpl)tmRegistry.getDefaultTypeMapping();

View Full Code Here

getRegisteredEncodingStyleURIs

public String[] getRegisteredEncodingStyleURIs()
Returns the encoding styles.

getTypeMapping

public TypeMapping getTypeMapping(String uri)
Returns the named type mapping
Usages and Demos :

View More Examples of getTypeMapping(String uri)
   1:     
   2:     public TypeMappingRegistry getRegistry() {
   3:         
   4:         ...
   5:         TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
   6:         ...
   7:         TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
   8:         ...
   9:         TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);

View Full Code Here
   1:     
   2:     public TypeMappingRegistry getRegistry() {
   3:         
   4:         ...
   5:         TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
   6:         ...
   7:         TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
   8:         ...
   9:         TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);

View Full Code Here
   1:     
   2:     public TypeMappingRegistry getRegistry() {
   3:         
   4:         ...
   5:         TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
   6:         ...
   7:         TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
   8:         ...
   9:         TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);

View Full Code Here
   1:     
   2:     public TypeMappingRegistry getRegistry() {
   3:         
   4:         ...
   5:         TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
   6:         ...
   7:         TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
   8:         ...
   9:         TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);

View Full Code Here
   1:     
   2:     public TypeMappingRegistry getRegistry() {
   3:         
   4:         ...
   5:         TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
   6:         ...
   7:         TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
   8:         ...
   9:         TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);

View Full Code Here

register

public TypeMapping register(String encodingStyleURI,
                            TypeMapping mapping)
Registers a TypeMapping with an encoding style.
Usages and Demos :

View More Examples of register(String encodingStyleURI,TypeMapping mapping)
   1: import javax.xml.rpc.encoding.TypeMapping;
   2: import javax.xml.rpc.encoding.TypeMappingRegistry;
   3: 
   4:         ...
   5:     protected void postProcessJaxRpcService(Service service) {
   6:         TypeMappingRegistry registry = service.getTypeMappingRegistry();
   7:         TypeMapping mapping = registry.createTypeMapping();
   8:         registerBeanMapping(mapping, Order.class, "Order");
   9:         registerBeanMapping(mapping, LineItem.class, "LineItem");

View Full Code Here
   1: import javax.xml.rpc.encoding.TypeMapping;
   2: import javax.xml.rpc.encoding.TypeMappingRegistry;
   3: 
   4:         ...
   5:     public void postProcessJaxRpcService(Service service) {
   6:         TypeMappingRegistry registry = service.getTypeMappingRegistry();
   7:         TypeMapping mapping = registry.createTypeMapping();
   8:         ...
   9:         registerBeanMapping(mapping, Product.class, "Product");
  10:         registry.register(this.encodingStyleUri, mapping);
  11:     }

View Full Code Here

registerDefault

public void registerDefault(TypeMapping mapping)
Registers the TypeMapping as a default.

removeTypeMapping

public boolean removeTypeMapping(TypeMapping mapping)
Removes a type mapping.

unregisterTypeMapping

public TypeMapping unregisterTypeMapping(String uri)
Unregisters a type mapping.