TextSerializationContextpublic class TextSerializationContext extends SerializationContext For internal use only. Used to get the first text node of an element. |
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 void | endElement()
depth--;
ignore = true;
| public void | serialize(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 void | startElement(javax.xml.namespace.QName qName, org.xml.sax.Attributes attributes)
depth++;
if (depth == 2) {
this.ignore = true;
}
| public void | writeChars(char[] p1, int p2, int p3)
if (!this.ignore) {
super.writeChars(p1, p2, p3);
}
| public void | writeDOMElement(org.w3c.dom.Element el)
throw new IOException(Messages.getMessage("notImplemented00",
"writeDOMElement"));
| public void | writeString(java.lang.String string)
if (!this.ignore) {
super.writeString(string);
}
|
|