Home » xml-commons-external-1.4.01-src » javax » xml » rpc » encoding » [javadoc | source]
javax.xml.rpc.encoding
public interface: TypeMapping [javadoc | source] This 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 Class, SerializerFactory, DeserializerFactory, XML type-QName}.
Method from javax.xml.rpc.encoding.TypeMapping Summary:
getDeserializer,   getSerializer,   getSupportedEncodings,   isRegistered,   register,   removeDeserializer,   removeSerializer,   setSupportedEncodings
Method from javax.xml.rpc.encoding.TypeMapping Detail:
 public DeserializerFactory getDeserializer(Class javaType,
    QName xmlType)
    Gets the DeserializerFactory registered for the specified pair of Java type and XML data type.
 public SerializerFactory getSerializer(Class javaType,
    QName xmlType)
    Gets the SerializerFactory registered for the specified pair of Java type and XML data type.
 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 null from this method.
 public boolean isRegistered(Class javaType,
    QName xmlType)
    Checks whether or not type mapping between specified XML type and Java type is registered.
 public  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.
 public  void removeDeserializer(Class javaType,
    QName xmlType)
    Removes the DeserializerFactory registered for the specified pair of Java type and XML data type.
 public  void removeSerializer(Class javaType,
    QName xmlType)
    Removes the SerializerFactory registered for the specified pair of Java type and XML data type.
 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 null as the parameter for this method.