public class TypeMappingDelegate extends Object implements TypeMapping
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getAllClasses()
Returns an array of all the classes contained within this mapping
|
Class |
getClassForQName(QName xmlType)
Gets the Class mapped to QName.
|
Class |
getClassForQName(QName xmlType,
Class javaType)
Gets the Class mapped to QName, preferring the passed Class if possible
|
DeserializerFactory |
getDeserializer(Class javaType,
QName xmlType)
Gets the DeserializerFactory registered for the specified pair
of Java type and XML data type.
|
DeserializerFactory |
getDeserializer(Class javaType,
QName xmlType,
TypeMappingDelegate start) |
DeserializerFactory |
getDeserializer(QName xmlType)
Gets the DeserializerFactory registered for the specified XML data type.
|
TypeMappingDelegate |
getNext()
getDelegate gets the new Delegate TypeMapping
|
SerializerFactory |
getSerializer(Class javaType)
Gets the SerializerFactory registered for the specified pair
of Java type and XML data type.
|
SerializerFactory |
getSerializer(Class javaType,
QName xmlType)
Gets the SerializerFactory registered for the specified
pair of Java type and XML data type.
|
String[] |
getSupportedEncodings()
JAX-RPC Compliant Method Definitions
|
QName |
getTypeQName(Class javaType)
Gets the QName for the type mapped to Class.
|
QName |
getTypeQNameExact(Class javaType)
Get the QName for this Java class, but only return a specific
mapping if there is one.
|
QName |
getXMLType(Class javaType,
QName xmlType,
boolean encoded)
Get the exact XML type QName which will be used when serializing a
given Class to a given type QName.
|
boolean |
isRegistered(Class javaType,
QName xmlType)
Checks whether or not type mapping between specified XML
type and Java type is registered.
|
void |
register(Class javaType,
QName xmlType,
SerializerFactory sf,
DeserializerFactory dsf)
always throws an exception
|
void |
removeDeserializer(Class javaType,
QName xmlType)
Removes the DeserializerFactory registered for the specified
pair of Java type and XML data type.
|
void |
removeSerializer(Class javaType,
QName xmlType)
Removes the SerializerFactory registered for the specified
pair of Java type and XML data type.
|
void |
setDoAutoTypes(boolean doAutoTypes) |
void |
setNext(TypeMappingDelegate next)
setDelegate sets the new Delegate TypeMapping
|
void |
setSupportedEncodings(String[] namespaceURIs)
Sets the encodingStyle URIs supported by this TypeMapping
instance.
|
public String[] getSupportedEncodings()
getSupportedEncodings in interface TypeMappingpublic void setSupportedEncodings(String[] namespaceURIs)
TypeMappingnull as the parameter for this method.setSupportedEncodings in interface TypeMappingnamespaceURIs - Array of encodingStyle URIs for the
supported encoding stylespublic void register(Class javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf) throws JAXRPCException
register in interface TypeMappingjavaType - xmlType - sf - dsf - JAXRPCExceptionpublic SerializerFactory getSerializer(Class javaType, QName xmlType) throws JAXRPCException
TypeMappinggetSerializer in interface TypeMappingjavaType - Class of the Java typexmlType - Qualified name of the XML data typenull
if there is no registered factoryJAXRPCExceptionpublic SerializerFactory getSerializer(Class javaType) throws JAXRPCException
TypeMappingjavaType - - Class of the Java typeJAXRPCException - - If there is no registered SerializerFactory
for this pair of Java type and XML data type
java.lang.IllegalArgumentException
If invalid or unsupported XML/Java type is specifiedpublic DeserializerFactory getDeserializer(Class javaType, QName xmlType) throws JAXRPCException
TypeMappinggetDeserializer in interface TypeMappingjavaType - Class of the Java typexmlType - Qualified name of the XML data typenull
if there is no registered factoryJAXRPCExceptionpublic DeserializerFactory getDeserializer(Class javaType, QName xmlType, TypeMappingDelegate start) throws JAXRPCException
JAXRPCExceptionpublic DeserializerFactory getDeserializer(QName xmlType) throws JAXRPCException
TypeMappingxmlType - - Qualified name of the XML data typeJAXRPCException - - If there is no registered DeserializerFactory
for this pair of Java type and XML data type
java.lang.IllegalArgumentException -
If invalid or unsupported XML/Java type is specifiedpublic void removeSerializer(Class javaType, QName xmlType) throws JAXRPCException
TypeMappingremoveSerializer in interface TypeMappingjavaType - Class of the Java typexmlType - Qualified name of the XML data typeJAXRPCException - if there is any error that prevents
removal of the registered SerializerFactorypublic void removeDeserializer(Class javaType, QName xmlType) throws JAXRPCException
TypeMappingremoveDeserializer in interface TypeMappingjavaType - Class of the Java typexmlType - Qualified name of the XML data typeJAXRPCException - if there is any error in removing
the registered DeserializerFactorypublic boolean isRegistered(Class javaType, QName xmlType)
TypeMappingisRegistered in interface TypeMappingjavaType - Class of the Java typexmlType - Qualified name of the XML data typetrue if type mapping between the
specified XML type and Java type is registered;
otherwise falsepublic QName getTypeQName(Class javaType)
javaType - class or typepublic Class getClassForQName(QName xmlType)
xmlType - qname or nullpublic Class getClassForQName(QName xmlType, Class javaType)
xmlType - qname or nulljavaType - a Java classpublic QName getTypeQNameExact(Class javaType)
javaType - public void setNext(TypeMappingDelegate next)
public TypeMappingDelegate getNext()
public Class[] getAllClasses()
public QName getXMLType(Class javaType, QName xmlType, boolean encoded) throws JAXRPCException
javaType - xmlType - JAXRPCExceptionpublic void setDoAutoTypes(boolean doAutoTypes)
Copyright © The Apache Software Foundation. All Rights Reserved.