|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeMapping
This is the base interface for the representation of a type mapping. A TypeMapping implementation class may support one or more encoding styles. For its supported encoding styles, a TypeMapping instance maintains a set of tuples of the type {Java Class, SerializerFactory, DeserializerFactory, XML type-QName}.
Method Summary | |
---|---|
DeserializerFactory |
getDeserializer(Class javaType,
javax.xml.namespace.QName xmlType)
Gets the DeserializerFactory registered for the specified pair of Java type and XML data type. |
SerializerFactory |
getSerializer(Class javaType,
javax.xml.namespace.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,
javax.xml.namespace.QName xmlType)
Checks whether or not type mapping between specified XML type and Java type is registered. |
void |
register(Class javaType,
javax.xml.namespace.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,
javax.xml.namespace.QName xmlType)
Removes the DeserializerFactory registered for the specified pair of Java type and XML data type. |
void |
removeSerializer(Class javaType,
javax.xml.namespace.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. |
Method Detail |
---|
DeserializerFactory getDeserializer(Class javaType, javax.xml.namespace.QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML type
SerializerFactory getSerializer(Class javaType, javax.xml.namespace.QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML type
String[] getSupportedEncodings()
void setSupportedEncodings(String[] encodingStyleURIs)
encodingStyleURIs
- Array of encodingStyle URIs for the supported encoding stylesboolean isRegistered(Class javaType, javax.xml.namespace.QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML type
void register(Class javaType, javax.xml.namespace.QName xmlType, SerializerFactory sf, DeserializerFactory dsf)
javaType
- Class of the Java typexmlType
- QName of the XML typesf
- SerializerFactorydsf
- DeserializerFactory
JAXRPCException
- If any error during the registrationvoid removeDeserializer(Class javaType, javax.xml.namespace.QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML type
JAXRPCException
- If there is error in removing the registered DeserializerFactoryvoid removeSerializer(Class javaType, javax.xml.namespace.QName xmlType)
javaType
- Class of the Java typexmlType
- QName of the XML type
JAXRPCException
- If there is error in removing the registered SerializerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |