FileDocCategorySizeDatePackage
TypeMapping.javaAPI DocApache Axis 1.43629Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding

TypeMapping

public interface TypeMapping implements Serializable, javax.xml.rpc.encoding.TypeMapping
This interface describes the AXIS TypeMapping.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Class[]getAllClasses()
Returns an array of all the classes contained within this mapping

public java.lang.ClassgetClassForQName(javax.xml.namespace.QName xmlType)
Gets the Class mapped to QName.

param
xmlType qname or null
return
javaType class for type or null for no mapping

public java.lang.ClassgetClassForQName(javax.xml.namespace.QName xmlType, java.lang.Class javaType)

public javax.xml.rpc.encoding.DeserializerFactorygetDeserializer(javax.xml.namespace.QName xmlType)
Gets the DeserializerFactory registered for the specified XML data type.

param
xmlType - Qualified name of the XML data type
return
Registered DeserializerFactory
throws
JAXRPCException - 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 specified

public javax.xml.rpc.encoding.SerializerFactorygetSerializer(java.lang.Class javaType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type.

param
javaType - Class of the Java type
return
Registered SerializerFactory
throws
JAXRPCException - 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 specified

public javax.xml.namespace.QNamegetTypeQName(java.lang.Class javaType)
Gets the QName for the type mapped to Class.

param
javaType class or type
return
xmlType qname or null

public javax.xml.namespace.QNamegetTypeQNameExact(java.lang.Class javaType)
Get the QName for this Java class, but only return a specific mapping if there is one. In other words, don't do special array processing, etc.

param
javaType
return

public javax.xml.namespace.QNamegetXMLType(java.lang.Class javaType, javax.xml.namespace.QName xmlType, boolean encoded)
Get the exact XML type QName which will be used when serializing a given Class to a given type QName. In other words, if we have: Class TypeQName ---------------------- Base myNS:Base Child myNS:Child and call getXMLType(Child.class, BASE_QNAME), we should get CHILD_QNAME.

param
javaType
param
xmlType
return
the type's QName
throws
javax.xml.rpc.JAXRPCException