public abstract class TypeMappingImpl extends Object implements javax.xml.rpc.encoding.TypeMapping
Modifier and Type | Class and Description |
---|---|
static class |
TypeMappingImpl.FactoryPair
A tuple of the type {XML typeQName, Java Class, SerializerFactory, DeserializerFactory}.
|
Constructor and Description |
---|
TypeMappingImpl() |
Modifier and Type | Method and Description |
---|---|
javax.xml.rpc.encoding.DeserializerFactory |
getDeserializer(Class javaType,
QName xmlType)
Gets the DeserializerFactory registered for the specified pair of Java type and XML data type.
|
Class |
getJavaType(QName xmlType)
Get the Class that was registered last for this xmlType
|
Class |
getJavaType(QName xmlType,
boolean getPrimitive)
Get the Class that was registered last for this xmlType
If there are two Java Types registered for the xmlType
return the primitive type rather than the wrapper,
if available
|
String |
getJavaTypeName(QName xmlType)
Get the Class name that was registered last for this xmlType
|
List<Class> |
getJavaTypes(QName xmlType)
Get all of the Classes registered for this xmlType.
|
List<Class> |
getRegisteredJavaTypes()
Get the list of registered Java types
|
List<QName> |
getRegisteredXmlTypes()
Get the list of registered XML types
|
javax.xml.rpc.encoding.SerializerFactory |
getSerializer(Class javaType,
QName xmlType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type.
|
abstract String[] |
getSupportedEncodings()
Returns the encodingStyle URIs (as String[]) supported by this TypeMapping instance.
|
QName |
getXMLType(Class javaType)
Get the QName that was registered last for this javaType
|
QName |
getXMLType(Class javaType,
boolean tryAssignable)
Get the QName that was registered last for this javaType
|
List<QName> |
getXMLTypes(Class javaType)
Get the QNames that was registered last for this javaType
|
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,
javax.xml.rpc.encoding.SerializerFactory sf,
javax.xml.rpc.encoding.DeserializerFactory df)
Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type.
|
protected void |
registerStandardLiteralTypes() |
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.
|
abstract void |
setSupportedEncodings(String[] encodingStyleURIs)
Sets the encodingStyle URIs supported by this TypeMapping instance.
|
public javax.xml.rpc.encoding.DeserializerFactory getDeserializer(Class javaType, QName xmlType)
getDeserializer
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typepublic javax.xml.rpc.encoding.SerializerFactory getSerializer(Class javaType, QName xmlType)
getSerializer
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typepublic abstract String[] getSupportedEncodings()
getSupportedEncodings
in interface javax.xml.rpc.encoding.TypeMapping
public abstract void setSupportedEncodings(String[] encodingStyleURIs)
setSupportedEncodings
in interface javax.xml.rpc.encoding.TypeMapping
encodingStyleURIs
- Array of encodingStyle URIs for the supported encoding stylespublic boolean isRegistered(Class javaType, QName xmlType)
isRegistered
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typepublic void register(Class javaType, QName xmlType, javax.xml.rpc.encoding.SerializerFactory sf, javax.xml.rpc.encoding.DeserializerFactory df)
register
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typesf
- SerializerFactorydf
- DeserializerFactoryjavax.xml.rpc.JAXRPCException
- If any error during the registrationpublic void removeDeserializer(Class javaType, QName xmlType)
removeDeserializer
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typejavax.xml.rpc.JAXRPCException
- If there is error in removing the registered DeserializerFactorypublic void removeSerializer(Class javaType, QName xmlType)
removeSerializer
in interface javax.xml.rpc.encoding.TypeMapping
javaType
- Class of the Java typexmlType
- QName of the XML typejavax.xml.rpc.JAXRPCException
- If there is error in removing the registered SerializerFactorypublic List<QName> getRegisteredXmlTypes()
public List<Class> getRegisteredJavaTypes()
public Class getJavaType(QName xmlType)
public List<Class> getJavaTypes(QName xmlType)
public Class getJavaType(QName xmlType, boolean getPrimitive)
public String getJavaTypeName(QName xmlType)
public QName getXMLType(Class javaType)
public List<QName> getXMLTypes(Class javaType)
public QName getXMLType(Class javaType, boolean tryAssignable)
javaType
- class for which XML Type is neededtryAssignable
- If the xmlType is not registered for javaType
should a base class type be checked?protected void registerStandardLiteralTypes()
Copyright © 2013 JBoss, by Red Hat. All Rights Reserved.