FileDocCategorySizeDatePackage
QNameDeserializer.javaAPI DocApache Axis 1.42188Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser

QNameDeserializer

public class QNameDeserializer extends SimpleDeserializer
The DateSerializer deserializes a Date. Much of the work is done in the base class.
author
Sam Ruby (rubys@us.ibm.com) Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com)

Fields Summary
private org.apache.axis.encoding.DeserializationContext
context
Constructors Summary
public QNameDeserializer(Class javaType, QName xmlType)
The Deserializer is constructed with the xmlType and javaType


                   
         
        super(javaType, xmlType);
    
Methods Summary
public java.lang.ObjectmakeValue(java.lang.String source)
The simple deserializer provides most of the stuff. We just need to override makeValue().

        source = source.trim();
        int colon = source.lastIndexOf(":");
        String namespace = colon < 0 ? "" :
                context.getNamespaceURI(source.substring(0, colon));
        String localPart = colon < 0 ? source : source.substring(colon + 1);
        return new QName(namespace, localPart);
    
public voidonStartElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)

        this.context = context;