org.apache.axis.encoding
Interface TypeMapping
- Serializable, TypeMapping
- TypeMappingDelegate
public interface TypeMapping
This interface describes the AXIS TypeMapping.
getAllClasses
public Class[] getAllClasses()
Returns an array of all the classes contained within this mapping
getClassForQName
public Class getClassForQName(QName xmlType)
Gets the Class mapped to QName.
- javaType class for type or null for no mapping
getClassForQName
public Class getClassForQName(QName xmlType,
Class javaType)
getDeserializer
public DeserializerFactory getDeserializer(QName xmlType)
throws JAXRPCException
Gets the DeserializerFactory registered for the specified XML data type.
xmlType
- - Qualified name of the XML data type
- Registered DeserializerFactory
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
getSerializer
public SerializerFactory getSerializer(Class javaType)
throws JAXRPCException
Gets the SerializerFactory registered for the specified pair
of Java type and XML data type.
javaType
- - Class of the Java type
- Registered SerializerFactory
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
getTypeQName
public QName getTypeQName(Class javaType)
Gets the QName for the type mapped to Class.
getTypeQNameExact
public QName getTypeQNameExact(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.
getXMLType
public QName getXMLType(Class javaType,
QName xmlType,
boolean encoded)
throws JAXRPCException
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.
Copyright © 2005 Apache Web Services Project. All Rights Reserved.