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}.
| Modifier and Type | Method and Description |
|---|---|
| public DeserializerFactory | Returns: Registered DeserializerFactory ornull
if there is no registered factoryClass of the Java type javaType, QName Qualified name of the XML data type xmlType)Gets the DeserializerFactory registered for the specified pair of Java type and XML data type. |
| public SerializerFactory | Returns: Registered SerializerFactory ornull
if there is no registered factoryClass of the Java type javaType, QName Qualified name of the XML data type xmlType)Gets the SerializerFactory registered for the specified pair of Java type and XML data type. |
| public String[] | Returns: Array of encodingStyle URIs for the supported encoding stylesReturns the encodingStyle URIs (as String[]) supported by this TypeMapping instance. |
| public boolean | Returns: boolean;true if type mapping between the
specified XML type and Java type is registered;
otherwise falseClass of the Java type javaType, QName Qualified name of the XML data type xmlType)Checks whether or not type mapping between specified XML type and Java type is registered. |
| public void | register(Class<T>
Class of the Java type javaType, QName Qualified name of the XML data type xmlType, SerializerFactory SerializerFactory sf, DeserializerFactory DeserializerFactory dsf)Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type. |
| public void | removeDeserializer(Class<T>
class to remove the Deserializer for javaType, QName Qualified Name of the XML type xmlType)Removes the DeserializerFactory registered for the specified pair of Java type and XML data type. |
| public void | removeSerializer(Class<T>
class to remove the Serializer for javaType, QName Qualified Name of the XML type xmlType)Removes the SerializerFactory registered for the specified pair of Java type and XML data type. |
| public void | setSupportedEncodings(String[]
Array of encodingStyle URIs for the
supported encoding styles encodingStyleURIs)Sets the encodingStyle URIs supported by this TypeMapping instance. |
| getDeserializer | back to summary |
|---|---|
| public DeserializerFactory getDeserializer(Class<T> javaType, QName xmlType) Gets the DeserializerFactory registered for the specified pair of Java type and XML data type.
| |
| getSerializer | back to summary |
|---|---|
| public SerializerFactory getSerializer(Class<T> javaType, QName xmlType) Gets the SerializerFactory registered for the specified pair of Java type and XML data type.
| |
| getSupportedEncodings | back to summary |
|---|---|
| public String[] getSupportedEncodings() Returns the encodingStyle URIs (as String[]) supported by
this TypeMapping instance. A TypeMapping that contains only
encoding style independent serializers and deserializers
returns
| |
| isRegistered | back to summary |
|---|---|
| public boolean isRegistered(Class<T> javaType, QName xmlType) Checks whether or not type mapping between specified XML type and Java type is registered. | |
| register | back to summary |
|---|---|
| public void register(Class<T> javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf) Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type. This method replaces any existing registered SerializerFactory DeserializerFactory instances.
| |
| removeDeserializer | back to summary |
|---|---|
| public void removeDeserializer(Class<T> javaType, QName xmlType) Removes the DeserializerFactory registered for the specified pair of Java type and XML data type.
| |
| removeSerializer | back to summary |
|---|---|
| public void removeSerializer(Class<T> javaType, QName xmlType) Removes the SerializerFactory registered for the specified pair of Java type and XML data type.
| |
| setSupportedEncodings | back to summary |
|---|---|
| public void setSupportedEncodings(String[] encodingStyleURIs) Sets the encodingStyle URIs supported by this TypeMapping
instance. A TypeMapping that contains only encoding
independent serializers and deserializers requires
| |