-
public interface TypeMapping
Thejavax.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}.- Version:
- 1.0
- Author:
- Rahul Sharma
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
getSupportedEncodings
String[] getSupportedEncodings()
Returns the encodingStyle URIs (as String[]) supported by this TypeMapping instance. A TypeMapping that contains only encoding style independent serializers and deserializers returnsnull
from this method.- Returns:
- Array of encodingStyle URIs for the supported encoding styles
-
setSupportedEncodings
void setSupportedEncodings(String[] encodingStyleURIs)
Sets the encodingStyle URIs supported by this TypeMapping instance. A TypeMapping that contains only encoding independent serializers and deserializers requiresnull
as the parameter for this method.- Parameters:
encodingStyleURIs
- Array of encodingStyle URIs for the supported encoding styles
-
isRegistered
boolean isRegistered(Class javaType, QName xmlType)
Checks whether or not type mapping between specified XML type and Java type is registered.- Parameters:
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type- Returns:
- boolean;
true
if type mapping between the specified XML type and Java type is registered; otherwisefalse
-
register
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. This method replaces any existing registered SerializerFactory DeserializerFactory instances.- Parameters:
javaType
- Class of the Java typexmlType
- Qualified name of the XML data typesf
- SerializerFactorydsf
- DeserializerFactory- Throws:
JAXRPCException
- If any error during the registration
-
getSerializer
SerializerFactory getSerializer(Class javaType, QName xmlType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type.- Parameters:
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type- Returns:
- Registered SerializerFactory or
null
if there is no registered factory
-
getDeserializer
DeserializerFactory getDeserializer(Class javaType, QName xmlType)
Gets the DeserializerFactory registered for the specified pair of Java type and XML data type.- Parameters:
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type- Returns:
- Registered DeserializerFactory or
null
if there is no registered factory
-
removeSerializer
void removeSerializer(Class javaType, QName xmlType)
Removes the SerializerFactory registered for the specified pair of Java type and XML data type.- Throws:
JAXRPCException
- If there is error in removing the registered SerializerFactory
-
removeDeserializer
void removeDeserializer(Class javaType, QName xmlType)
Removes the DeserializerFactory registered for the specified pair of Java type and XML data type.- Throws:
JAXRPCException
- If there is error in removing the registered DeserializerFactory
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/xml/rpc/encoding/TypeMapping.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.