org.apache.soap.encoding
Class SOAPMappingRegistry

java.lang.Object
  |
  +--org.apache.soap.util.xml.XMLJavaMappingRegistry
        |
        +--org.apache.soap.encoding.SOAPMappingRegistry

public class SOAPMappingRegistry
extends XMLJavaMappingRegistry

A SOAPMappingRegistry object is an XMLJavaMappingRegistry with pre-registered serializers and deserializers to support SOAP.

Author:
Matthew J. Duftler (duftler@us.ibm.com), Sanjiva Weerawarana (sanjiva@watson.ibm.com), Francisco Curbera (curbera@us.ibm.com), Sam Ruby (rubys@us.ibm.com)

Constructor Summary
SOAPMappingRegistry()
           
 
Method Summary
 QName queryElementType(java.lang.Class javaType, java.lang.String encodingStyleURI)
          This function overrides the one in XMLJavaMappingRegistry for the sole purpose of returning SOAP-ENC:Array when javaType represents an array.
 Serializer querySerializer(java.lang.Class javaType, java.lang.String encodingStyleURI)
          This function overrides the one in XMLJavaMappingRegistry for the sole purpose of returning an ArraySerializer when javaType represents an array.
 
Methods inherited from class org.apache.soap.util.xml.XMLJavaMappingRegistry
mapTypes, marshall, queryDeserializer, queryJavaType, unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPMappingRegistry

public SOAPMappingRegistry()
Method Detail

queryElementType

public QName queryElementType(java.lang.Class javaType,
                              java.lang.String encodingStyleURI)
                       throws java.lang.IllegalArgumentException
This function overrides the one in XMLJavaMappingRegistry for the sole purpose of returning SOAP-ENC:Array when javaType represents an array. The XMLJavaMappingRegistry will be consulted first, and if no mapping is found, SOAP-ENC:Array is returned. Obviously, this only applies when the encoding style is soap encoding.
Overrides:
queryElementType in class XMLJavaMappingRegistry

querySerializer

public Serializer querySerializer(java.lang.Class javaType,
                                  java.lang.String encodingStyleURI)
                           throws java.lang.IllegalArgumentException
This function overrides the one in XMLJavaMappingRegistry for the sole purpose of returning an ArraySerializer when javaType represents an array. The XMLJavaMappingRegistry will be consulted first, and if no serializer is found for javaType, ArraySerailizer is returned. Obviously, this only applies when the encoding style is soap encoding.
Overrides:
querySerializer in class XMLJavaMappingRegistry


Copyright © 2001 Oracle SOAP. All Rights Reserved.