FileDocCategorySizeDatePackage
TextSerializationContext.javaAPI DocApache Axis 1.42787Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding

TextSerializationContext

public class TextSerializationContext extends SerializationContext
For internal use only. Used to get the first text node of an element.
author
Jarek Gawor (gawor@apache.org)

Fields Summary
private boolean
ignore
private int
depth
Constructors Summary
public TextSerializationContext(Writer writer)


      
    
        super(writer);
        startOfDocument = false;    // prevent XML decl for text
    
public TextSerializationContext(Writer writer, org.apache.axis.MessageContext msgContext)

        super(writer, msgContext);
        startOfDocument = false;    // prevent XML decl for text
    
Methods Summary
public voidendElement()

        depth--;
        ignore = true;
    
public voidserialize(javax.xml.namespace.QName elemQName, org.xml.sax.Attributes attributes, java.lang.Object value, javax.xml.namespace.QName xmlType, java.lang.Boolean sendNull, java.lang.Boolean sendType)

        throw new IOException(Messages.getMessage("notImplemented00",
                                                  "serialize"));
    
public voidstartElement(javax.xml.namespace.QName qName, org.xml.sax.Attributes attributes)

        depth++;
        if (depth == 2) {
            this.ignore = true;
        }
    
public voidwriteChars(char[] p1, int p2, int p3)

        if (!this.ignore) {
            super.writeChars(p1, p2, p3);
        }
    
public voidwriteDOMElement(org.w3c.dom.Element el)

        throw new IOException(Messages.getMessage("notImplemented00",
                                                  "writeDOMElement"));
    
public voidwriteString(java.lang.String string)

        if (!this.ignore) {
            super.writeString(string);
        }