|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The javax.xml.rpc.encoding.TypeMapping is the base interface for representation of a type mapping. A TypeMapping implementation class may support one or more encoding styles and XML schema namespaces. For its supported encoding styles and XML schema namespaces, a TypeMapping instance maintains a set of tuples of the type {Java type, SerializerFactory, DeserializerFactory, XML data 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[] |
getSupportedNamespaces()
Gets the list of encoding styles supported by this TypeMapping. |
boolean |
isRegistered(java.lang.Class javaType,
QName xmlType)
isRegistered returns true if the [javaType, xmlType] pair 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 |
setSupportedNamespaces(java.lang.String[] namespaceURIs)
Sets the list of encoding styles supported by this TypeMapping. |
Method Detail |
public java.lang.String[] getSupportedNamespaces()
public void setSupportedNamespaces(java.lang.String[] namespaceURIs)
namespaceURIs
- String[] of namespace URI'spublic boolean isRegistered(java.lang.Class javaType, QName xmlType)
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typepublic void register(java.lang.Class javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf) throws JAXRPCException
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typesf
- - SerializerFactorydsf
- - DeserializerFactoryJAXRPCException
- - If any error during the registrationpublic SerializerFactory getSerializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data 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(java.lang.Class javaType, QName xmlType) throws JAXRPCException
javaType
- - Class of the Java typexmlType
- - 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(java.lang.Class javaType, QName xmlType) throws JAXRPCException
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - If there is error
in removing the registered SerializerFactory
java.lang.IllegalArgumentException -
If invalid or unsupported XML/Java type is specifiedpublic void removeDeserializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - If there is error in removing
the registered DeserializerFactory
java.lang.IllegalArgumentException -
If invalid or unsupported XML/Java type is specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |