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

ElementDeserializer

public class ElementDeserializer extends org.apache.axis.encoding.DeserializerImpl
Deserializer for DOM elements
author
Glen Daniels (gdaniels@apache.org) Modified by @author Rich scheuerle

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.getAsDOM();
                    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.getAsDOM();
                }
            }
        }
        catch( Exception exp ) {
            log.error(Messages.getMessage("exception00"), exp);
            throw new SAXException( exp );
        }