FileDocCategorySizeDatePackage
JAFDataHandlerDeserializer.javaAPI DocApache Axis 1.43902Sat Apr 22 18:57:26 BST 2006org.apache.axis.encoding.ser

JAFDataHandlerDeserializer

public class JAFDataHandlerDeserializer extends org.apache.axis.encoding.DeserializerImpl
JAFDataHandler Serializer
author
Rick Rineholt Modified by Rich Scheuerle

Fields Summary
protected static Log
log
Constructors Summary
Methods Summary
public org.apache.axis.message.SOAPHandleronStartChild(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)
Deserializer interface called on each child element encountered in the XML stream.

        if(namespace.equals(Constants.URI_XOP_INCLUDE) &&
                localName.equals(Constants.ELEM_XOP_INCLUDE)) {
            populateDataHandler(context, namespace, localName, attributes);
            return null;
        } else {
            throw new SAXException(Messages.getMessage(
                    "noSubElements", namespace + ":" + localName));
        }
    
private voidpopulateDataHandler(org.apache.axis.encoding.DeserializationContext context, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attributes)

        SOAPConstants soapConstants = context.getSOAPConstants();

        QName type = context.getTypeFromAttributes(namespace,
                                                   localName,
                                                   attributes);
        if (log.isDebugEnabled()) {
            log.debug(Messages.getMessage("gotType00", "Deser", "" + type));
        }

        String href = attributes.getValue(soapConstants.getAttrHref());
        if (href != null) {
            Object ref = context.getObjectByRef(href);
            try{
                ref = AttachmentUtils.getActivationDataHandler((org.apache.axis.Part)ref);
            }catch(AxisFault e){;}

            setValue(ref);
        }
    
public voidstartElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)


         
                                
                              
          

        if (!context.isDoneParsing()) {
            if (myElement == null) {
                try {
                    myElement = makeNewElement(namespace, localName, prefix, attributes, context);
                } catch (AxisFault axisFault) {
                    throw new SAXException(axisFault);
                }
                context.pushNewElement(myElement);
            }
        }
        populateDataHandler(context, namespace, localName, attributes);