Methods Summary |
---|
public DeserializerFactory | getDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType)Gets the DeserializerFactory registered for the specified pair
of Java type and XML data type.
|
public SerializerFactory | getSerializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType)Gets the SerializerFactory registered for the specified
pair of Java type and XML data type.
|
public java.lang.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 null from this method.
|
public boolean | isRegistered(java.lang.Class javaType, javax.xml.namespace.QName xmlType)Checks whether or not type mapping between specified XML
type and Java type is registered.
|
public void | register(java.lang.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.
This method replaces any existing registered SerializerFactory
DeserializerFactory instances.
|
public void | removeDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType)Removes the DeserializerFactory registered for the specified
pair of Java type and XML data type.
|
public void | removeSerializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType)Removes the SerializerFactory registered for the specified
pair of Java type and XML data type.
|
public void | setSupportedEncodings(java.lang.String[] encodingStyleURIs)Sets the encodingStyle URIs supported by this TypeMapping
instance. A TypeMapping that contains only encoding
independent serializers and deserializers requires
null as the parameter for this method.
|