Class TextSerializationContext

java.lang.Object
org.apache.axis.encoding.SerializationContext
org.apache.axis.encoding.TextSerializationContext
All Implemented Interfaces:
SerializationContext

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)
  • Constructor Details

    • TextSerializationContext

      public TextSerializationContext(Writer writer)
    • TextSerializationContext

      public TextSerializationContext(Writer writer, MessageContext msgContext)
  • Method Details

    • serialize

      public void serialize(QName elemQName, Attributes attributes, Object value, QName xmlType, Boolean sendNull, Boolean sendType) throws IOException
      Description copied from class: SerializationContext
      Serialize the indicated value as an element with the name indicated by elemQName. The attributes are additional attribute to be serialized on the element. The value is the object being serialized. (It may be serialized directly or serialized as an mult-ref'd item) The value is an Object, which may be a wrapped primitive. The xmlType (if specified) is the QName of the type that is used to set xsi:type. The sendNull flag indicates whether to end an element with an xsi:nil="true" attribute for null variables (if Boolean.TRUE), or nothing (if Boolean.FALSE). The sendType flag indicates whether the xsi:type flag should be sent (default is true).
      Overrides:
      serialize in class SerializationContext
      Parameters:
      elemQName - is the QName of the element
      attributes - are additional attributes
      value - is the object to serialize
      xmlType - is the qname of the type or null.
      sendNull - determines whether to send null values.
      sendType - determines whether to set xsi:type attribute.
      Throws:
      IOException
    • writeDOMElement

      public void writeDOMElement(Element el) throws IOException
      Description copied from class: SerializationContext
      Output a DOM representation to a SerializationContext
      Overrides:
      writeDOMElement in class SerializationContext
      Parameters:
      el - is a DOM Element
      Throws:
      IOException
    • startElement

      public void startElement(QName qName, Attributes attributes) throws IOException
      Description copied from class: SerializationContext
      Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.
      Overrides:
      startElement in class SerializationContext
      Parameters:
      qName - is the name of the element
      attributes - are the attributes to write
      Throws:
      IOException
    • endElement

      public void endElement() throws IOException
      Description copied from class: SerializationContext
      Writes the end element tag for the open element.
      Overrides:
      endElement in class SerializationContext
      Throws:
      IOException
    • writeChars

      public void writeChars(char[] p1, int p2, int p3) throws IOException
      Description copied from class: SerializationContext
      Convenience operation to write out (to Writer) the characters in p1 starting at index p2 for length p3.
      Overrides:
      writeChars in class SerializationContext
      Parameters:
      p1 - character array to write
      p2 - starting index in array
      p3 - length to write
      Throws:
      IOException
    • writeString

      public void writeString(String string) throws IOException
      Description copied from class: SerializationContext
      Convenience operation to write out (to Writer) the String
      Overrides:
      writeString in class SerializationContext
      Parameters:
      string - is the String to write.
      Throws:
      IOException