org.apache.axis.encoding
Class ElementSerializer

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.apache.axis.message.SOAPHandler
              |
              +--org.apache.axis.encoding.Deserializer
                    |
                    +--org.apache.axis.encoding.ElementSerializer
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, java.io.Serializable, Serializer

public class ElementSerializer
extends Deserializer
implements Serializer

Serializer for DOM elements

Author:
Glen Daniels (gdaniels@macromedia.com)
See Also:
Serialized Form

Inner Class Summary
static class ElementSerializer.Factory
           
 
Inner classes inherited from class org.apache.axis.encoding.Deserializer
Deserializer.FieldTarget, Deserializer.MethodTarget, Deserializer.Target
 
Field Summary
static DeserializerFactory factory
           
 
Fields inherited from class org.apache.axis.encoding.Deserializer
isComplete, targets, value
 
Fields inherited from class org.apache.axis.message.SOAPHandler
myElement
 
Constructor Summary
ElementSerializer()
           
 
Method Summary
 void onEndElement(java.lang.String namespace, java.lang.String localName, DeserializationContext context)
          Subclasses override this to do custom functionality at the end of their enclosing element.
 void serialize(QName name, org.xml.sax.Attributes attributes, java.lang.Object value, SerializationContext context)
          Serialize a DOM Element
 
Methods inherited from class org.apache.axis.encoding.Deserializer
copyValueTargets, endElement, getValue, onStartChild, onStartElement, registerCallback, registerValueTarget, registerValueTarget, setValue, startElement, valueComplete
 
Methods inherited from class org.apache.axis.message.SOAPHandler
onEndChild
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public static DeserializerFactory factory
Constructor Detail

ElementSerializer

public ElementSerializer()
Method Detail

serialize

public void serialize(QName name,
                      org.xml.sax.Attributes attributes,
                      java.lang.Object value,
                      SerializationContext context)
               throws java.io.IOException
Serialize a DOM Element
Specified by:
serialize in interface Serializer

onEndElement

public final void onEndElement(java.lang.String namespace,
                               java.lang.String localName,
                               DeserializationContext context)
                        throws org.xml.sax.SAXException
Description copied from class: Deserializer
Subclasses override this to do custom functionality at the end of their enclosing element. This will NOT be called for HREFs...
Overrides:
onEndElement in class Deserializer


Copyright © 2001 Apache XML Project. All Rights Reserved.