|
|||||||||
| Home >> All >> org >> apache >> axis >> [ encoding overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.axis.encoding
Class TypeMappingDelegate

java.lang.Objectorg.apache.axis.encoding.TypeMappingDelegate
- All Implemented Interfaces:
- java.io.Serializable, TypeMapping, javax.xml.rpc.encoding.TypeMapping
- public class TypeMappingDelegate
- extends java.lang.Object
- implements TypeMapping
- extends java.lang.Object
The TypeMapping delegate is used to simply delegate to the indicated type mapping. It is used by the TypeMappingRegistry to assist with chaining.
| Field Summary | |
(package private) TypeMappingImpl |
delegate
|
(package private) TypeMappingDelegate |
next
|
(package private) static TypeMappingImpl |
placeholder
|
| Constructor Summary | |
(package private) |
TypeMappingDelegate(TypeMappingImpl delegate)
Construct TypeMapping |
| Method Summary | |
java.lang.Class[] |
getAllClasses()
Returns an array of all the classes contained within this mapping |
java.lang.Class |
getClassForQName(javax.xml.namespace.QName xmlType)
Gets the Class mapped to QName. |
java.lang.Class |
getClassForQName(javax.xml.namespace.QName xmlType,
java.lang.Class javaType)
Gets the Class mapped to QName, preferring the passed Class if possible |
javax.xml.rpc.encoding.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. |
javax.xml.rpc.encoding.DeserializerFactory |
getDeserializer(java.lang.Class javaType,
javax.xml.namespace.QName xmlType,
TypeMappingDelegate start)
|
javax.xml.rpc.encoding.DeserializerFactory |
getDeserializer(javax.xml.namespace.QName xmlType)
Gets the DeserializerFactory registered for the specified XML data type. |
TypeMappingDelegate |
getNext()
getDelegate gets the new Delegate TypeMapping |
javax.xml.rpc.encoding.SerializerFactory |
getSerializer(java.lang.Class javaType)
Gets the SerializerFactory registered for the specified pair of Java type and XML data type. |
javax.xml.rpc.encoding.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. |
java.lang.String[] |
getSupportedEncodings()
JAX-RPC Compliant Method Definitions |
javax.xml.namespace.QName |
getTypeQName(java.lang.Class javaType)
Gets the QName for the type mapped to Class. |
javax.xml.namespace.QName |
getTypeQNameExact(java.lang.Class javaType)
Get the QName for this Java class, but only return a specific mapping if there is one. |
javax.xml.namespace.QName |
getXMLType(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. |
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. |
void |
register(java.lang.Class javaType,
javax.xml.namespace.QName xmlType,
javax.xml.rpc.encoding.SerializerFactory sf,
javax.xml.rpc.encoding.DeserializerFactory dsf)
always throws an exception |
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. |
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. |
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 |
| Field Detail |
placeholder
static final TypeMappingImpl placeholder
delegate
TypeMappingImpl delegate
next
TypeMappingDelegate next
| Constructor Detail |
TypeMappingDelegate
TypeMappingDelegate(TypeMappingImpl delegate)
- Construct TypeMapping
| Method Detail |
getSupportedEncodings
public java.lang.String[] getSupportedEncodings()
- JAX-RPC Compliant Method Definitions
- Specified by:
getSupportedEncodingsin interfacejavax.xml.rpc.encoding.TypeMapping
setSupportedEncodings
public void setSupportedEncodings(java.lang.String[] namespaceURIs)
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Sets the encodingStyle URIs supported by this TypeMapping
instance. A TypeMapping that contains only encoding
independent serializers and deserializers requires
nullas the parameter for this method.- Specified by:
setSupportedEncodingsin interfacejavax.xml.rpc.encoding.TypeMapping
register
public void register(java.lang.Class javaType, javax.xml.namespace.QName xmlType, javax.xml.rpc.encoding.SerializerFactory sf, javax.xml.rpc.encoding.DeserializerFactory dsf) throws javax.xml.rpc.JAXRPCException
- always throws an exception
- Specified by:
registerin interfacejavax.xml.rpc.encoding.TypeMapping
getSerializer
public javax.xml.rpc.encoding.SerializerFactory getSerializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Gets the SerializerFactory registered for the specified
pair of Java type and XML data type.
- Specified by:
getSerializerin interfacejavax.xml.rpc.encoding.TypeMapping
getSerializer
public javax.xml.rpc.encoding.SerializerFactory getSerializer(java.lang.Class javaType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
TypeMapping - Gets the SerializerFactory registered for the specified pair
of Java type and XML data type.
- Specified by:
getSerializerin interfaceTypeMapping
getDeserializer
public javax.xml.rpc.encoding.DeserializerFactory getDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Gets the DeserializerFactory registered for the specified pair
of Java type and XML data type.
- Specified by:
getDeserializerin interfacejavax.xml.rpc.encoding.TypeMapping
getDeserializer
public javax.xml.rpc.encoding.DeserializerFactory getDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType, TypeMappingDelegate start) throws javax.xml.rpc.JAXRPCException
getDeserializer
public javax.xml.rpc.encoding.DeserializerFactory getDeserializer(javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
TypeMapping - Gets the DeserializerFactory registered for the specified XML data type.
- Specified by:
getDeserializerin interfaceTypeMapping
removeSerializer
public void removeSerializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Removes the SerializerFactory registered for the specified
pair of Java type and XML data type.
- Specified by:
removeSerializerin interfacejavax.xml.rpc.encoding.TypeMapping
removeDeserializer
public void removeDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType) throws javax.xml.rpc.JAXRPCException
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Removes the DeserializerFactory registered for the specified
pair of Java type and XML data type.
- Specified by:
removeDeserializerin interfacejavax.xml.rpc.encoding.TypeMapping
isRegistered
public boolean isRegistered(java.lang.Class javaType, javax.xml.namespace.QName xmlType)
- Description copied from interface:
javax.xml.rpc.encoding.TypeMapping - Checks whether or not type mapping between specified XML
type and Java type is registered.
- Specified by:
isRegisteredin interfacejavax.xml.rpc.encoding.TypeMapping
getTypeQName
public javax.xml.namespace.QName getTypeQName(java.lang.Class javaType)
- Gets the QName for the type mapped to Class.
- Specified by:
getTypeQNamein interfaceTypeMapping
getClassForQName
public java.lang.Class getClassForQName(javax.xml.namespace.QName xmlType)
- Gets the Class mapped to QName.
- Specified by:
getClassForQNamein interfaceTypeMapping
getClassForQName
public java.lang.Class getClassForQName(javax.xml.namespace.QName xmlType, java.lang.Class javaType)
- Gets the Class mapped to QName, preferring the passed Class if possible
- Specified by:
getClassForQNamein interfaceTypeMapping
getTypeQNameExact
public javax.xml.namespace.QName getTypeQNameExact(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.
- Specified by:
getTypeQNameExactin interfaceTypeMapping
setNext
public void setNext(TypeMappingDelegate next)
- setDelegate sets the new Delegate TypeMapping
getNext
public TypeMappingDelegate getNext()
- getDelegate gets the new Delegate TypeMapping
getAllClasses
public java.lang.Class[] getAllClasses()
- Returns an array of all the classes contained within this mapping
- Specified by:
getAllClassesin interfaceTypeMapping
getXMLType
public javax.xml.namespace.QName getXMLType(java.lang.Class javaType, javax.xml.namespace.QName xmlType, boolean encoded) throws javax.xml.rpc.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.
- Specified by:
getXMLTypein interfaceTypeMapping
setDoAutoTypes
public void setDoAutoTypes(boolean doAutoTypes)
|
|||||||||
| Home >> All >> org >> apache >> axis >> [ encoding overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.axis.encoding.TypeMappingDelegate