public interface TypeMapping
Modifier and Type | Method and Description |
---|---|
DeserializerFactory |
getDeserializer(Class javaType,
QName xmlType)
Gets the DeserializerFactory 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()
Returns the encodingStyle URIs (as String[]) supported by this TypeMapping instance.
|
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)
Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type.
|
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 |
setSupportedEncodings(String[] encodingStyleURIs)
Sets the encodingStyle URIs supported by this TypeMapping instance.
|
DeserializerFactory getDeserializer(Class javaType, QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML typeSerializerFactory getSerializer(Class javaType, QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML typeString[] getSupportedEncodings()
void setSupportedEncodings(String[] encodingStyleURIs)
encodingStyleURIs
- Array of encodingStyle URIs for the supported encoding stylesboolean isRegistered(Class javaType, QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML typevoid register(Class javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf)
javaType
- Class of the Java typexmlType
- QName of the XML typesf
- SerializerFactorydsf
- DeserializerFactoryJAXRPCException
- If any error during the registrationvoid removeDeserializer(Class javaType, QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML typeJAXRPCException
- If there is error in removing the registered DeserializerFactoryvoid removeSerializer(Class javaType, QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML typeJAXRPCException
- If there is error in removing the registered SerializerFactoryCopyright © 2017 JBoss by Red Hat. All rights reserved.