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

DocumentDeserializer

public class DocumentDeserializer extends org.apache.axis.encoding.DeserializerImpl
Deserializer for DOM Document
author
Davanum Srinivas

Fields Summary
protected static Log
log
public static final String
DESERIALIZE_CURRENT_ELEMENT
Constructors Summary
Methods Summary
public final voidonEndElement(java.lang.String namespace, java.lang.String localName, org.apache.axis.encoding.DeserializationContext context)


          
                                    
         
    
        try {
            MessageElement msgElem = context.getCurElement();
            if ( msgElem != null ) {
                MessageContext messageContext = context.getMessageContext();
                Boolean currentElement = (Boolean) messageContext.getProperty(DESERIALIZE_CURRENT_ELEMENT);
                if (currentElement != null && currentElement.booleanValue()) {
                    value = msgElem.getAsDocument();
                    messageContext.setProperty(DESERIALIZE_CURRENT_ELEMENT, Boolean.FALSE);
                    return;
                }
                List children = msgElem.getChildren();
                if ( children != null ) {
                    msgElem = (MessageElement) children.get(0);
                    if ( msgElem != null )
                        value = msgElem.getAsDocument();
                }
            }
        }
        catch( Exception exp ) {
            log.error(Messages.getMessage("exception00"), exp);
            throw new SAXException( exp );
        }