|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.encoding.TypeMappingDelegate
public class TypeMappingDelegate
The TypeMapping delegate is used to simply delegate to the indicated type mapping. It is used by the TypeMappingRegistry to assist with chaining.
Method Summary | |
---|---|
java.lang.Class[] |
getAllClasses()
Returns an array of all the classes contained within this mapping |
java.lang.Class |
getClassForQName(QName xmlType)
Gets the Class mapped to QName. |
java.lang.Class |
getClassForQName(QName xmlType,
java.lang.Class javaType)
Gets the Class mapped to QName, preferring the passed Class if possible |
DeserializerFactory |
getDeserializer(java.lang.Class javaType,
QName xmlType)
Gets the DeserializerFactory registered for the specified pair of Java type and XML data type. |
DeserializerFactory |
getDeserializer(java.lang.Class javaType,
QName xmlType,
TypeMappingDelegate start)
|
DeserializerFactory |
getDeserializer(QName xmlType)
|
TypeMappingDelegate |
getNext()
getDelegate gets the new Delegate TypeMapping |
SerializerFactory |
getSerializer(java.lang.Class javaType)
|
SerializerFactory |
getSerializer(java.lang.Class javaType,
QName xmlType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type. |
java.lang.String[] |
getSupportedEncodings()
JAX-RPC Compliant Method Definitions |
QName |
getTypeQName(java.lang.Class javaType)
Gets the QName for the type mapped to Class. |
QName |
getTypeQNameExact(java.lang.Class javaType)
Get the QName for this Java class, but only return a specific mapping if there is one. |
QName |
getXMLType(java.lang.Class javaType,
QName xmlType,
boolean encoded)
Get the exact XML type QName which will be used when serializing a given Class to a given type QName. |
boolean |
isRegistered(java.lang.Class javaType,
QName xmlType)
Checks whether or not type mapping between specified XML type and Java type is registered. |
void |
register(java.lang.Class javaType,
QName xmlType,
SerializerFactory sf,
DeserializerFactory dsf)
always throws an exception |
void |
removeDeserializer(java.lang.Class javaType,
QName xmlType)
Removes the DeserializerFactory registered for the specified pair of Java type and XML data type. |
void |
removeSerializer(java.lang.Class javaType,
QName xmlType)
Removes the SerializerFactory registered for the specified pair of Java type and XML data type. |
void |
setDoAutoTypes(boolean doAutoTypes)
|
void |
setNext(TypeMappingDelegate next)
setDelegate sets the new Delegate TypeMapping |
void |
setSupportedEncodings(java.lang.String[] namespaceURIs)
Sets the encodingStyle URIs supported by this TypeMapping instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String[] getSupportedEncodings()
getSupportedEncodings
in interface TypeMapping
public void setSupportedEncodings(java.lang.String[] namespaceURIs)
TypeMapping
null
as the parameter for this method.
setSupportedEncodings
in interface TypeMapping
namespaceURIs
- Array of encodingStyle URIs for the
supported encoding stylespublic void register(java.lang.Class javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf) throws JAXRPCException
register
in interface TypeMapping
javaType
- xmlType
- sf
- dsf
-
JAXRPCException
public SerializerFactory getSerializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
TypeMapping
getSerializer
in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
null
if there is no registered factory
JAXRPCException
public SerializerFactory getSerializer(java.lang.Class javaType) throws JAXRPCException
JAXRPCException
public DeserializerFactory getDeserializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
TypeMapping
getDeserializer
in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
null
if there is no registered factory
JAXRPCException
public DeserializerFactory getDeserializer(java.lang.Class javaType, QName xmlType, TypeMappingDelegate start) throws JAXRPCException
JAXRPCException
public DeserializerFactory getDeserializer(QName xmlType) throws JAXRPCException
JAXRPCException
public void removeSerializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
TypeMapping
removeSerializer
in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
JAXRPCException
- if there is any error that prevents
removal of the registered SerializerFactorypublic void removeDeserializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
TypeMapping
removeDeserializer
in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
JAXRPCException
- if there is any error in removing
the registered DeserializerFactorypublic boolean isRegistered(java.lang.Class javaType, QName xmlType)
TypeMapping
isRegistered
in interface TypeMapping
javaType
- Class of the Java typexmlType
- Qualified name of the XML data type
true
if type mapping between the
specified XML type and Java type is registered;
otherwise false
public QName getTypeQName(java.lang.Class javaType)
javaType
- class or type
public java.lang.Class getClassForQName(QName xmlType)
xmlType
- qname or null
public java.lang.Class getClassForQName(QName xmlType, java.lang.Class javaType)
xmlType
- qname or nulljavaType
- a Java class
public QName getTypeQNameExact(java.lang.Class javaType)
javaType
-
public void setNext(TypeMappingDelegate next)
public TypeMappingDelegate getNext()
public java.lang.Class[] getAllClasses()
public QName getXMLType(java.lang.Class javaType, QName xmlType, boolean encoded) throws JAXRPCException
javaType
- xmlType
-
JAXRPCException
public void setDoAutoTypes(boolean doAutoTypes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |