|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The javax.xml.rpc.encoding.TypeMapping 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 type,
SerializerFactory,
DeserializerFactory, XML type}.
| Method Summary | |
DeserializerFactory |
getDeserializer(java.lang.Class javaType,
QName xmlType)
Gets the DeserializerFactory registered for the specified pair of Java type and XML data type. |
SerializerFactory |
getSerializer(java.lang.Class javaType,
QName xmlType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type. |
java.lang.String[] |
getSupportedEncodings()
Returns the encodingStyle URIs (as String[]) supported by this TypeMapping instance. |
boolean |
isRegistered(java.lang.Class javaType,
QName xmlType)
Checks whether or not type mapping between specified XML type and Java type is registered. |
void |
register(java.lang.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(java.lang.Class javaType,
QName xmlType)
Removes the DeserializerFactory registered for the specified pair of Java type and XML data type. |
void |
removeSerializer(java.lang.Class javaType,
QName xmlType)
Removes the SerializerFactory registered for the specified pair of Java type and XML data type. |
void |
setSupportedEncodings(java.lang.String[] encodingStyleURIs)
Sets the encodingStyle URIs supported by this TypeMapping instance. |
| Method Detail |
public java.lang.String[] getSupportedEncodings()
null from this method.
public void setSupportedEncodings(java.lang.String[] encodingStyleURIs)
null as the parameter for this method.
encodingStyleURIs - Array of encodingStyle URIs for the
supported encoding styles
public boolean isRegistered(java.lang.Class javaType,
QName xmlType)
javaType - Class of the Java typexmlType - Qualified name of the XML data type
true if type mapping between the
specified XML type and Java type is registered;
otherwise false
public void register(java.lang.Class javaType,
QName xmlType,
SerializerFactory sf,
DeserializerFactory dsf)
javaType - Class of the Java typexmlType - Qualified name of the XML data typesf - SerializerFactorydsf - DeserializerFactory
JAXRPCException - if there are any errors that
prevent registration
public SerializerFactory getSerializer(java.lang.Class javaType,
QName xmlType)
javaType - Class of the Java typexmlType - Qualified name of the XML data type
null
if there is no registered factory
public DeserializerFactory getDeserializer(java.lang.Class javaType,
QName xmlType)
javaType - Class of the Java typexmlType - Qualified name of the XML data type
null
if there is no registered factory
public void removeSerializer(java.lang.Class javaType,
QName xmlType)
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
public void removeDeserializer(java.lang.Class javaType,
QName xmlType)
javaType - Class of the Java typexmlType - Qualified name of the XML data type
JAXRPCException - if there is any error in removing
the registered DeserializerFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||