The TypeMapping delegate is used to simply delegate to
the indicated type mapping. It is used by the TypeMappingRegistry
to assist with chaining.
getAllClasses
public Class[] getAllClasses()
Returns an array of all the classes contained within this mapping
- getAllClasses in interface TypeMapping
getClassForQName
public Class getClassForQName(QName xmlType)
Gets the Class mapped to QName.
- getClassForQName in interface TypeMapping
- javaType class for type or null for no mappingor delegate
getClassForQName
public Class getClassForQName(QName xmlType,
Class javaType)
Gets the Class mapped to QName, preferring the passed Class if possible
- getClassForQName in interface TypeMapping
xmlType
- qname or nulljavaType
- a Java class
- javaType class for type or null for no mappingor delegate
getDeserializer
public DeserializerFactory getDeserializer(Class javaType,
QName xmlType)
throws JAXRPCException
Gets the DeserializerFactory registered for the specified pair
of Java type and XML data type.
- getDeserializer in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
- Registered SerializerFactory or
null
if there is no registered factory
getSerializer
public SerializerFactory getSerializer(Class javaType,
QName xmlType)
throws JAXRPCException
Gets the SerializerFactory registered for the specified
pair of Java type and XML data type.
- getSerializer in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
- Registered SerializerFactory or
null
if there is no registered factory
getSupportedEncodings
public String[] getSupportedEncodings()
JAX-RPC Compliant Method Definitions ****************
- getSupportedEncodings in interface TypeMapping
getTypeQNameExact
public QName getTypeQNameExact(Class javaType)
Get the QName for this Java class, but only return a specific
mapping if there is one. In other words, don't do special array
processing, etc.
- getTypeQNameExact in interface TypeMapping
getXMLType
public QName getXMLType(Class javaType,
QName xmlType,
boolean encoded)
throws JAXRPCException
Get the exact XML type QName which will be used when serializing a
given Class to a given type QName. In other words, if we have:
Class TypeQName
----------------------
Base myNS:Base
Child myNS:Child
and call getXMLType(Child.class, BASE_QNAME), we should get
CHILD_QNAME.
- getXMLType in interface TypeMapping
isRegistered
public boolean isRegistered(Class javaType,
QName xmlType)
Checks whether or not type mapping between specified XML
type and Java type is registered.
- isRegistered in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
- boolean;
true
if type mapping between the
specified XML type and Java type is registered;
otherwise false
removeDeserializer
public void removeDeserializer(Class javaType,
QName xmlType)
throws JAXRPCException
Removes the DeserializerFactory registered for the specified
pair of Java type and XML data type.
- removeDeserializer in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
JAXRPCException
- if there is any error in removing
the registered DeserializerFactory
removeSerializer
public void removeSerializer(Class javaType,
QName xmlType)
throws JAXRPCException
Removes the SerializerFactory registered for the specified
pair of Java type and XML data type.
- removeSerializer in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
JAXRPCException
- if there is any error that prevents
removal of the registered SerializerFactory
setDoAutoTypes
public void setDoAutoTypes(boolean doAutoTypes)
setNext
public void setNext(TypeMappingDelegate next)
setDelegate sets the new Delegate TypeMapping
setSupportedEncodings
public void setSupportedEncodings(String[] namespaceURIs)
Sets the encodingStyle URIs supported by this TypeMapping
instance. A TypeMapping that contains only encoding
independent serializers and deserializers requires
null
as the parameter for this method.
- setSupportedEncodings in interface TypeMapping