org.apache.axis.encoding.ser
Class QNameDeserializer
- Deserializer, java.io.Serializable, Callback, Deserializer, Deserializer
public class QNameDeserializer
The DateSerializer deserializes a Date. Much of the work is done in the
base class.
- Sam Ruby (rubys@us.ibm.com)
Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com)
QNameDeserializer(Class javaType, QName xmlType) - The Deserializer is constructed with the xmlType and
javaType
|
Object | makeValue(String source) - The simple deserializer provides most of the stuff.
|
void | onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) - Set the bean properties that correspond to element attributes.
|
addChildDeserializer , componentsReady , endElement , getDefaultType , getMechanismType , getValue , getValue , getValueTargets , moveValueTargets , onEndElement , onStartChild , onStartElement , registerValueTarget , removeValueTargets , setChildValue , setDefaultType , setValue , setValue , startElement , valueComplete |
QNameDeserializer
public QNameDeserializer(Class javaType,
QName xmlType)
The Deserializer is constructed with the xmlType and
javaType
makeValue
public Object makeValue(String source)
The simple deserializer provides most of the stuff.
We just need to override makeValue().
- makeValue in interface SimpleDeserializer
onStartElement
public void onStartElement(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
throws SAXException
Set the bean properties that correspond to element attributes.
This method is invoked after startElement when the element requires
deserialization (i.e. the element is not an href and the value is not nil.)
- onStartElement in interface Deserializer
- onStartElement in interface SimpleDeserializer
namespace
- is the namespace of the elementlocalName
- is the name of the elementprefix
- is the prefix of the elementattributes
- are the attributes on the element...used to get the typecontext
- is the DeserializationContext
Copyright © 2005 Apache Web Services Project. All Rights Reserved.