package org.jboss.axis.encoding;
import org.jboss.axis.Constants;
import org.jboss.axis.attachments.OctetStream;
import org.jboss.axis.encoding.ser.*;
import org.jboss.axis.schema.SchemaVersion;
import org.jboss.axis.types.HexBinary;
import org.jboss.axis.utils.JavaUtils;
import org.jboss.axis.utils.Messages;
import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
import javax.xml.rpc.encoding.DeserializerFactory;
public class DefaultTypeMappingImpl extends TypeMappingImpl
{
private static DefaultTypeMappingImpl tm = null;
private boolean doneInit = false;
public static synchronized TypeMapping getSingleton()
{
if (tm == null)
{
tm = new DefaultTypeMappingImpl();
}
return tm;
}
protected DefaultTypeMappingImpl()
{
this(false);
}
protected DefaultTypeMappingImpl(boolean encoded)
{
super(null);
delegate = null;
if (JavaUtils.isAttachmentSupported())
{
myRegister(Constants.MIME_PLAINTEXT, java.lang.String.class,
new JAFDataHandlerSerializerFactory(java.lang.String.class,
Constants.MIME_PLAINTEXT),
new JAFDataHandlerDeserializerFactory(java.lang.String.class,
Constants.MIME_PLAINTEXT));
myRegister(Constants.XSD_HEXBIN, java.lang.String.class,
new JAFDataHandlerSerializerFactory(java.lang.String.class,
Constants.MIME_PLAINTEXT),
new JAFDataHandlerDeserializerFactory(java.lang.String.class,
Constants.MIME_PLAINTEXT));
}
if (!encoded)
{
registerSOAPTypes();
}
myRegister(Constants.XSD_HEXBIN, HexBinary.class,
new HexSerializerFactory(HexBinary.class, Constants.XSD_HEXBIN),
new HexDeserializerFactory(HexBinary.class, Constants.XSD_HEXBIN));
myRegister(Constants.XSD_HEXBIN, byte[].class,
new HexSerializerFactory(byte[].class, Constants.XSD_HEXBIN),
new HexDeserializerFactory(byte[].class, Constants.XSD_HEXBIN));
myRegister(Constants.XSD_BYTE, byte[].class,
new ArraySerializerFactory(),
null);
myRegister(Constants.XSD_BASE64, byte[].class,
new Base64SerializerFactory(byte[].class,
Constants.XSD_BASE64),
new Base64DeserializerFactory(byte[].class,
Constants.XSD_BASE64));
myRegisterSimple(Constants.XSD_ANYSIMPLETYPE, java.lang.String.class);
myRegister(Constants.XSD_UNSIGNEDLONG, java.math.BigInteger.class,
new SimpleSerializerFactory(java.math.BigInteger.class, Constants.XSD_UNSIGNEDLONG),
new SimpleDeserializerFactory(java.math.BigInteger.class, Constants.XSD_UNSIGNEDLONG));
myRegister(Constants.XSD_UNSIGNEDINT, java.lang.Long.class,
new SimpleSerializerFactory(java.lang.Long.class, Constants.XSD_UNSIGNEDINT),
new SimpleDeserializerFactory(java.lang.Long.class, Constants.XSD_UNSIGNEDINT));
myRegister(Constants.XSD_UNSIGNEDSHORT, java.lang.Integer.class,
new SimpleSerializerFactory(java.lang.Integer.class, Constants.XSD_UNSIGNEDSHORT),
new SimpleDeserializerFactory(java.lang.Integer.class, Constants.XSD_UNSIGNEDSHORT));
myRegister(Constants.XSD_UNSIGNEDBYTE, java.lang.Short.class,
new SimpleSerializerFactory(java.lang.Short.class, Constants.XSD_UNSIGNEDBYTE),
new SimpleDeserializerFactory(java.lang.Short.class, Constants.XSD_UNSIGNEDBYTE));
myRegister(Constants.XSD_NONNEGATIVEINTEGER, java.math.BigInteger.class,
new SimpleSerializerFactory(java.math.BigInteger.class, Constants.XSD_NONNEGATIVEINTEGER),
new SimpleDeserializerFactory(java.math.BigInteger.class, Constants.XSD_NONNEGATIVEINTEGER));
myRegister(Constants.XSD_NEGATIVEINTEGER, java.math.BigInteger.class,
new SimpleSerializerFactory(java.math.BigInteger.class, Constants.XSD_NEGATIVEINTEGER),
new SimpleDeserializerFactory(java.math.BigInteger.class, Constants.XSD_NEGATIVEINTEGER));
myRegister(Constants.XSD_POSITIVEINTEGER, java.math.BigInteger.class,
new SimpleSerializerFactory(java.math.BigInteger.class, Constants.XSD_POSITIVEINTEGER),
new SimpleDeserializerFactory(java.math.BigInteger.class, Constants.XSD_POSITIVEINTEGER));
myRegister(Constants.XSD_NONPOSITIVEINTEGER, java.math.BigInteger.class,
new SimpleSerializerFactory(java.math.BigInteger.class, Constants.XSD_NONPOSITIVEINTEGER),
new SimpleDeserializerFactory(java.math.BigInteger.class, Constants.XSD_NONPOSITIVEINTEGER));
Class uriClass = null;
try
{
uriClass = Class.forName("java.net.URI");
myRegisterSimple(Constants.XSD_ANYURI, uriClass);
}
catch (ClassNotFoundException ignore)
{
myRegisterSimple(Constants.XSD_ANYURI, java.lang.String.class);
}
myRegisterSimple(Constants.XSD_STRING, java.lang.String.class);
myRegisterSimple(Constants.XSD_BOOLEAN, java.lang.Boolean.class);
myRegisterSimple(Constants.XSD_DOUBLE, java.lang.Double.class);
myRegisterSimple(Constants.XSD_FLOAT, java.lang.Float.class);
myRegisterSimple(Constants.XSD_INT, java.lang.Integer.class);
myRegisterSimple(Constants.XSD_INTEGER, java.math.BigInteger.class);
myRegisterSimple(Constants.XSD_DECIMAL, java.math.BigDecimal.class);
myRegisterSimple(Constants.XSD_LONG, java.lang.Long.class);
myRegisterSimple(Constants.XSD_SHORT, java.lang.Short.class);
myRegisterSimple(Constants.XSD_BYTE, java.lang.Byte.class);
myRegisterSimple(Constants.XSD_BOOLEAN, boolean.class);
myRegisterSimple(Constants.XSD_DOUBLE, double.class);
myRegisterSimple(Constants.XSD_FLOAT, float.class);
myRegisterSimple(Constants.XSD_INT, int.class);
myRegisterSimple(Constants.XSD_LONG, long.class);
myRegisterSimple(Constants.XSD_SHORT, short.class);
myRegisterSimple(Constants.XSD_BYTE, byte.class);
myRegister(Constants.XSD_QNAME,
javax.xml.namespace.QName.class,
new QNameSerializerFactory(javax.xml.namespace.QName.class, Constants.XSD_QNAME),
new QNameDeserializerFactory(javax.xml.namespace.QName.class, Constants.XSD_QNAME));
myRegister(Constants.XSD_ANYTYPE, java.lang.Object.class, null, null);
myRegister(Constants.XSD_DATE, org.jboss.axis.types.Time.class,
new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATE),
new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATE));
myRegister(Constants.XSD_DATE, java.sql.Date.class,
new DateSerializerFactory(java.sql.Date.class, Constants.XSD_DATE),
new DateDeserializerFactory(java.sql.Date.class, Constants.XSD_DATE));
myRegister(Constants.XSD_DATE, java.util.Date.class,
new DateSerializerFactory(java.util.Date.class, Constants.XSD_DATE),
new DateDeserializerFactory(java.util.Date.class, Constants.XSD_DATE));
myRegister(Constants.XSD_DATE, java.util.Calendar.class,
new DateSerializerFactory(java.util.Calendar.class, Constants.XSD_DATE),
new DateDeserializerFactory(java.util.Calendar.class, Constants.XSD_DATE));
myRegister(Constants.XSD_DATETIME, org.jboss.axis.types.Time.class,
new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATETIME),
new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATETIME));
myRegister(Constants.XSD_TIME, org.jboss.axis.types.Time.class,
new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_TIME),
new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_TIME));
myRegister(Constants.XSD_YEARMONTH, org.jboss.axis.types.YearMonth.class,
new SimpleSerializerFactory(org.jboss.axis.types.YearMonth.class,
Constants.XSD_YEARMONTH),
new SimpleDeserializerFactory(org.jboss.axis.types.YearMonth.class,
Constants.XSD_YEARMONTH));
myRegister(Constants.XSD_YEAR, org.jboss.axis.types.Year.class,
new SimpleSerializerFactory(org.jboss.axis.types.Year.class,
Constants.XSD_YEAR),
new SimpleDeserializerFactory(org.jboss.axis.types.Year.class,
Constants.XSD_YEAR));
myRegister(Constants.XSD_MONTH, org.jboss.axis.types.Month.class,
new SimpleSerializerFactory(org.jboss.axis.types.Month.class,
Constants.XSD_MONTH),
new SimpleDeserializerFactory(org.jboss.axis.types.Month.class,
Constants.XSD_MONTH));
myRegister(Constants.XSD_DAY, org.jboss.axis.types.Day.class,
new SimpleSerializerFactory(org.jboss.axis.types.Day.class,
Constants.XSD_DAY),
new SimpleDeserializerFactory(org.jboss.axis.types.Day.class,
Constants.XSD_DAY));
myRegister(Constants.XSD_MONTHDAY, org.jboss.axis.types.MonthDay.class,
new SimpleSerializerFactory(org.jboss.axis.types.MonthDay.class,
Constants.XSD_MONTHDAY),
new SimpleDeserializerFactory(org.jboss.axis.types.MonthDay.class,
Constants.XSD_MONTHDAY));
myRegister(Constants.SOAP_MAP, java.util.HashMap.class,
new MapSerializerFactory(java.util.Map.class,
Constants.SOAP_MAP),
new MapDeserializerFactory(java.util.HashMap.class,
Constants.SOAP_MAP));
myRegister(Constants.SOAP_MAP, java.util.Hashtable.class,
new MapSerializerFactory(java.util.Hashtable.class,
Constants.SOAP_MAP),
null );
myRegister(Constants.SOAP_MAP, java.util.Map.class,
new MapSerializerFactory(java.util.Map.class,
Constants.SOAP_MAP),
null );
myRegister(Constants.SOAP_ELEMENT, org.w3c.dom.Element.class,
new ElementSerializerFactory(),
new ElementDeserializerFactory());
myRegister(Constants.SOAP_DOCUMENT, org.w3c.dom.Document.class,
new DocumentSerializerFactory(),
new DocumentDeserializerFactory());
myRegister(Constants.SOAP_VECTOR, java.util.Vector.class,
new VectorSerializerFactory(java.util.Vector.class,
Constants.SOAP_VECTOR),
new VectorDeserializerFactory(java.util.Vector.class,
Constants.SOAP_VECTOR));
if (JavaUtils.isAttachmentSupported())
{
myRegister(Constants.MIME_IMAGE, java.awt.Image.class,
new JAFDataHandlerSerializerFactory(java.awt.Image.class,
Constants.MIME_IMAGE),
new JAFDataHandlerDeserializerFactory(java.awt.Image.class,
Constants.MIME_IMAGE));
myRegister(Constants.MIME_MULTIPART, javax.mail.internet.MimeMultipart.class,
new JAFDataHandlerSerializerFactory(javax.mail.internet.MimeMultipart.class,
Constants.MIME_MULTIPART),
new JAFDataHandlerDeserializerFactory(javax.mail.internet.MimeMultipart.class,
Constants.MIME_MULTIPART));
myRegister(Constants.MIME_SOURCE, javax.xml.transform.Source.class,
new JAFDataHandlerSerializerFactory(javax.xml.transform.Source.class,
Constants.MIME_SOURCE),
new JAFDataHandlerDeserializerFactory(javax.xml.transform.Source.class,
Constants.MIME_SOURCE));
myRegister(Constants.MIME_OCTETSTREAM, OctetStream.class,
new JAFDataHandlerSerializerFactory(OctetStream.class,
Constants.MIME_OCTETSTREAM),
new JAFDataHandlerDeserializerFactory(OctetStream.class,
Constants.MIME_OCTETSTREAM));
myRegister(Constants.MIME_DATA_HANDLER, javax.activation.DataHandler.class,
new JAFDataHandlerSerializerFactory(),
new JAFDataHandlerDeserializerFactory());
}
myRegister(Constants.XSD_TOKEN, org.jboss.axis.types.Token.class,
new SimpleSerializerFactory(org.jboss.axis.types.Token.class,
Constants.XSD_TOKEN),
new SimpleDeserializerFactory(org.jboss.axis.types.Token.class,
Constants.XSD_TOKEN));
myRegister(Constants.XSD_NORMALIZEDSTRING, org.jboss.axis.types.NormalizedString.class,
new SimpleSerializerFactory(org.jboss.axis.types.NormalizedString.class,
Constants.XSD_NORMALIZEDSTRING),
new SimpleDeserializerFactory(org.jboss.axis.types.NormalizedString.class,
Constants.XSD_NORMALIZEDSTRING));
myRegister(Constants.XSD_UNSIGNEDLONG, org.jboss.axis.types.UnsignedLong.class,
new SimpleSerializerFactory(org.jboss.axis.types.UnsignedLong.class, Constants.XSD_UNSIGNEDLONG),
new SimpleDeserializerFactory(org.jboss.axis.types.UnsignedLong.class, Constants.XSD_UNSIGNEDLONG));
myRegister(Constants.XSD_UNSIGNEDINT, org.jboss.axis.types.UnsignedInt.class,
new SimpleSerializerFactory(org.jboss.axis.types.UnsignedInt.class, Constants.XSD_UNSIGNEDINT),
new SimpleDeserializerFactory(org.jboss.axis.types.UnsignedInt.class, Constants.XSD_UNSIGNEDINT));
myRegister(Constants.XSD_UNSIGNEDSHORT, org.jboss.axis.types.UnsignedShort.class,
new SimpleSerializerFactory(org.jboss.axis.types.UnsignedShort.class, Constants.XSD_UNSIGNEDSHORT),
new SimpleDeserializerFactory(org.jboss.axis.types.UnsignedShort.class, Constants.XSD_UNSIGNEDSHORT));
myRegister(Constants.XSD_UNSIGNEDBYTE, org.jboss.axis.types.UnsignedByte.class,
new SimpleSerializerFactory(org.jboss.axis.types.UnsignedByte.class, Constants.XSD_UNSIGNEDBYTE),
new SimpleDeserializerFactory(org.jboss.axis.types.UnsignedByte.class, Constants.XSD_UNSIGNEDBYTE));
myRegister(Constants.XSD_NONNEGATIVEINTEGER, org.jboss.axis.types.NonNegativeInteger.class,
new SimpleSerializerFactory(org.jboss.axis.types.NonNegativeInteger.class, Constants.XSD_NONNEGATIVEINTEGER),
new SimpleDeserializerFactory(org.jboss.axis.types.NonNegativeInteger.class, Constants.XSD_NONNEGATIVEINTEGER));
myRegister(Constants.XSD_NEGATIVEINTEGER, org.jboss.axis.types.NegativeInteger.class,
new SimpleSerializerFactory(org.jboss.axis.types.NegativeInteger.class, Constants.XSD_NEGATIVEINTEGER),
new SimpleDeserializerFactory(org.jboss.axis.types.NegativeInteger.class, Constants.XSD_NEGATIVEINTEGER));
myRegister(Constants.XSD_POSITIVEINTEGER, org.jboss.axis.types.PositiveInteger.class,
new SimpleSerializerFactory(org.jboss.axis.types.PositiveInteger.class, Constants.XSD_POSITIVEINTEGER),
new SimpleDeserializerFactory(org.jboss.axis.types.PositiveInteger.class, Constants.XSD_POSITIVEINTEGER));
myRegister(Constants.XSD_NONPOSITIVEINTEGER, org.jboss.axis.types.NonPositiveInteger.class,
new SimpleSerializerFactory(org.jboss.axis.types.NonPositiveInteger.class, Constants.XSD_NONPOSITIVEINTEGER),
new SimpleDeserializerFactory(org.jboss.axis.types.NonPositiveInteger.class, Constants.XSD_NONPOSITIVEINTEGER));
myRegister(Constants.XSD_NAME, org.jboss.axis.types.Name.class,
new SimpleSerializerFactory(org.jboss.axis.types.Name.class,
Constants.XSD_NAME),
new SimpleDeserializerFactory(org.jboss.axis.types.Name.class,
Constants.XSD_NAME));
myRegister(Constants.XSD_NCNAME, org.jboss.axis.types.NCName.class,
new SimpleSerializerFactory(org.jboss.axis.types.NCName.class,
Constants.XSD_NCNAME),
new SimpleDeserializerFactory(org.jboss.axis.types.NCName.class,
Constants.XSD_NCNAME));
myRegister(Constants.XSD_ID, org.jboss.axis.types.Id.class,
new SimpleSerializerFactory(org.jboss.axis.types.Id.class,
Constants.XSD_ID),
new SimpleDeserializerFactory(org.jboss.axis.types.Id.class,
Constants.XSD_ID));
myRegister(Constants.XSD_LANGUAGE, org.jboss.axis.types.Language.class,
new SimpleSerializerFactory(org.jboss.axis.types.Language.class,
Constants.XSD_LANGUAGE),
new SimpleDeserializerFactory(org.jboss.axis.types.Language.class,
Constants.XSD_LANGUAGE));
myRegister(Constants.XML_LANG, org.jboss.axis.types.Language.class,
new SimpleSerializerFactory(org.jboss.axis.types.Language.class,
Constants.XML_LANG),
new SimpleDeserializerFactory(org.jboss.axis.types.Language.class,
Constants.XML_LANG));
myRegister(Constants.XSD_NMTOKEN, org.jboss.axis.types.NMToken.class,
new SimpleSerializerFactory(org.jboss.axis.types.NMToken.class,
Constants.XSD_NMTOKEN),
new SimpleDeserializerFactory(org.jboss.axis.types.NMToken.class,
Constants.XSD_NMTOKEN));
myRegister(Constants.XSD_NMTOKENS, org.jboss.axis.types.NMTokens.class,
new SimpleSerializerFactory(org.jboss.axis.types.NMTokens.class,
Constants.XSD_NMTOKENS),
new SimpleDeserializerFactory(org.jboss.axis.types.NMTokens.class,
Constants.XSD_NMTOKENS));
myRegister(Constants.XSD_NOTATION, org.jboss.axis.types.Notation.class,
new BeanSerializerFactory(org.jboss.axis.types.Notation.class,
Constants.XSD_NOTATION),
new BeanDeserializerFactory(org.jboss.axis.types.Notation.class,
Constants.XSD_NOTATION));
myRegister(Constants.XSD_ENTITY, org.jboss.axis.types.Entity.class,
new SimpleSerializerFactory(org.jboss.axis.types.Entity.class,
Constants.XSD_ENTITY),
new SimpleDeserializerFactory(org.jboss.axis.types.Entity.class,
Constants.XSD_ENTITY));
myRegister(Constants.XSD_ENTITIES, org.jboss.axis.types.Entities.class,
new SimpleSerializerFactory(org.jboss.axis.types.Entities.class,
Constants.XSD_ENTITIES),
new SimpleDeserializerFactory(org.jboss.axis.types.Entities.class,
Constants.XSD_ENTITIES));
myRegister(Constants.XSD_IDREF, org.jboss.axis.types.IDRef.class,
new SimpleSerializerFactory(org.jboss.axis.types.IDRef.class,
Constants.XSD_IDREF),
new SimpleDeserializerFactory(org.jboss.axis.types.IDRef.class,
Constants.XSD_IDREF));
myRegister(Constants.XSD_IDREFS, org.jboss.axis.types.IDRefs.class,
new SimpleSerializerFactory(org.jboss.axis.types.IDRefs.class,
Constants.XSD_IDREFS),
new SimpleDeserializerFactory(org.jboss.axis.types.IDRefs.class,
Constants.XSD_IDREFS));
myRegister(Constants.XSD_DURATION, org.jboss.axis.types.Duration.class,
new SimpleSerializerFactory(org.jboss.axis.types.Duration.class,
Constants.XSD_DURATION),
new SimpleDeserializerFactory(org.jboss.axis.types.Duration.class,
Constants.XSD_DURATION));
myRegister(Constants.XSD_ANYURI, org.jboss.axis.types.URI.class,
new SimpleSerializerFactory(org.jboss.axis.types.URI.class, Constants.XSD_ANYURI),
new SimpleDeserializerFactory(org.jboss.axis.types.URI.class, Constants.XSD_ANYURI));
myRegister(Constants.XSD_SCHEMA, org.jboss.axis.types.Schema.class,
new BeanSerializerFactory(org.jboss.axis.types.Schema.class,
Constants.XSD_SCHEMA),
new BeanDeserializerFactory(org.jboss.axis.types.Schema.class,
Constants.XSD_SCHEMA));
myRegister(Constants.SOAP_ARRAY12, java.util.Collection.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
myRegister(Constants.SOAP_ARRAY12, java.util.ArrayList.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
myRegister(Constants.SOAP_ARRAY12, Object[].class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
myRegister(Constants.SOAP_ARRAY, java.util.ArrayList.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
myRegister(Constants.SOAP_ARRAY, java.util.Collection.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
myRegister(Constants.SOAP_ARRAY, Object[].class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory());
SchemaVersion.SCHEMA_1999.registerSchemaSpecificTypes(this);
SchemaVersion.SCHEMA_2000.registerSchemaSpecificTypes(this);
SchemaVersion.SCHEMA_2001.registerSchemaSpecificTypes(this);
if (encoded)
{
registerSOAPTypes();
}
doneInit = true;
}
private void registerSOAPTypes()
{
myRegisterSimple(Constants.SOAP_STRING, java.lang.String.class);
myRegisterSimple(Constants.SOAP_BOOLEAN, java.lang.Boolean.class);
myRegisterSimple(Constants.SOAP_DOUBLE, java.lang.Double.class);
myRegisterSimple(Constants.SOAP_FLOAT, java.lang.Float.class);
myRegisterSimple(Constants.SOAP_INT, java.lang.Integer.class);
myRegisterSimple(Constants.SOAP_INTEGER, java.math.BigInteger.class);
myRegisterSimple(Constants.SOAP_DECIMAL, java.math.BigDecimal.class);
myRegisterSimple(Constants.SOAP_LONG, java.lang.Long.class);
myRegisterSimple(Constants.SOAP_SHORT, java.lang.Short.class);
myRegisterSimple(Constants.SOAP_BYTE, java.lang.Byte.class);
myRegister(Constants.SOAP_BASE64, byte[].class,
new Base64SerializerFactory(byte[].class,
Constants.SOAP_BASE64),
new Base64DeserializerFactory(byte[].class,
Constants.SOAP_BASE64));
myRegister(Constants.SOAP_BASE64BINARY, byte[].class,
new Base64SerializerFactory(byte[].class,
Constants.SOAP_BASE64),
new Base64DeserializerFactory(byte[].class,
Constants.SOAP_BASE64));
}
protected void myRegisterSimple(QName xmlType, Class javaType)
{
SerializerFactory sf = new SimpleSerializerFactory(javaType, xmlType);
DeserializerFactory df = null;
if (javaType != java.lang.Object.class)
{
df = new SimpleDeserializerFactory(javaType, xmlType);
}
myRegister(xmlType, javaType, sf, df);
}
protected void myRegister(QName xmlType, Class javaType,
SerializerFactory sf, DeserializerFactory df)
{
try
{
if (xmlType.getNamespaceURI().equals(Constants.URI_DEFAULT_SCHEMA_XSD))
{
for (int i = 0; i < Constants.URIS_SCHEMA_XSD.length; i++)
{
QName qName = new QName(Constants.URIS_SCHEMA_XSD[i],
xmlType.getLocalPart());
super.internalRegister(javaType, qName, sf, df);
}
}
else if (xmlType.getNamespaceURI().equals(Constants.URI_DEFAULT_SOAP_ENC))
{
for (int i = 0; i < Constants.URIS_SOAP_ENC.length; i++)
{
QName qName = new QName(Constants.URIS_SOAP_ENC[i],
xmlType.getLocalPart());
super.internalRegister(javaType, qName, sf, df);
}
}
super.internalRegister(javaType, xmlType, sf, df);
}
catch (JAXRPCException e)
{
}
}
public void register(Class javaType, QName xmlType,
javax.xml.rpc.encoding.SerializerFactory sf,
javax.xml.rpc.encoding.DeserializerFactory dsf)
throws JAXRPCException
{
if (doneInit)
{
throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
}
else
{
super.register(javaType, xmlType, sf, dsf);
}
}
public void removeSerializer(Class javaType, QName xmlType)
throws JAXRPCException
{
throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
}
public void removeDeserializer(Class javaType, QName xmlType)
throws JAXRPCException
{
throw new JAXRPCException(Messages.getMessage("fixedTypeMapping"));
}
public void setSupportedEncodings(String[] namespaceURIs)
{
}
}