|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.encoding.TypeMappingImpl
Inner Class Summary | |
class |
TypeMappingImpl.Pair
|
Field Summary | |
protected TypeMapping |
delegate
|
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
TypeMappingImpl(TypeMapping delegate)
Construct TypeMapping |
Method Summary | |
java.lang.Class |
getClassForQName(QName xmlType)
Gets the Class mapped to QName. |
TypeMapping |
getDelegate()
getDelegate gets the new Delegate TypeMapping |
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(QName xmlType)
Gets the DeserializerFactory registered for the xmlType. |
SerializerFactory |
getSerializer(java.lang.Class javaType)
Gets the SerializerFactory registered for the Java type. |
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()
Gets the list of encoding styles supported by this TypeMapping object. |
QName |
getTypeQName(java.lang.Class javaType)
Gets the QName for the type mapped to Class. |
boolean |
isRegistered(java.lang.Class javaType,
QName xmlType)
isRegistered returns true if the [javaType, xmlType] pair is registered. |
void |
register(java.lang.Class javaType,
QName xmlType,
SerializerFactory sf,
DeserializerFactory dsf)
Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type. |
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 |
setDelegate(TypeMapping delegate)
setDelegate sets the new Delegate TypeMapping |
void |
setSupportedEncodings(java.lang.String[] namespaceURIs)
Sets the list of encoding styles supported by this TypeMapping object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
protected TypeMapping delegate
Constructor Detail |
public TypeMappingImpl(TypeMapping delegate)
Method Detail |
public void setDelegate(TypeMapping delegate)
setDelegate
in interface TypeMapping
public TypeMapping getDelegate()
getDelegate
in interface TypeMapping
public java.lang.String[] getSupportedEncodings()
getSupportedEncodings
in interface TypeMapping
public void setSupportedEncodings(java.lang.String[] namespaceURIs)
setSupportedEncodings
in interface TypeMapping
namespaceURIs
- String[] of namespace URI'spublic boolean isRegistered(java.lang.Class javaType, QName xmlType)
isRegistered
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typepublic void register(java.lang.Class javaType, QName xmlType, SerializerFactory sf, DeserializerFactory dsf) throws JAXRPCException
register
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typesf
- - SerializerFactorydsf
- - DeserializerFactoryJAXRPCException
- - If any error during the registrationpublic SerializerFactory getSerializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
getSerializer
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - 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 specifiedpublic DeserializerFactory getDeserializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
getDeserializer
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - 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 specifiedpublic void removeSerializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
removeSerializer
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - If there is error in
removing the registered SerializerFactorypublic void removeDeserializer(java.lang.Class javaType, QName xmlType) throws JAXRPCException
removeDeserializer
in interface TypeMapping
javaType
- - Class of the Java typexmlType
- - Qualified name of the XML data typeJAXRPCException
- - If there is error in
removing the registered DeserializerFactorypublic QName getTypeQName(java.lang.Class javaType)
getTypeQName
in interface TypeMapping
javaType
- class or typepublic java.lang.Class getClassForQName(QName xmlType)
getClassForQName
in interface TypeMapping
xmlType
- qname or nullpublic SerializerFactory getSerializer(java.lang.Class javaType) throws JAXRPCException
getSerializer
in interface TypeMapping
javaType
- - Class of the Java typeJAXRPCException
- - 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 specifiedpublic DeserializerFactory getDeserializer(QName xmlType) throws JAXRPCException
getDeserializer
in interface TypeMapping
xmlType
- - Qualified name of the XML data typeJAXRPCException
- - 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |