View Javadoc

    1   package org.codehaus.xfire.aegis;
    2
    3   import javax.xml.namespace.QName;
    4
    5   /***
    6    * Writes messages to an output stream.
    7    *
    8    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    9    */
    10  public interface MessageWriter
    11  {
    12      void writeValue( Object value );
    13
    14      void writeValueAsInt( Integer i );
    15
    16      void writeValueAsDouble(Double double1);
    17
    18      void writeValueAsLong(Long l);
    19
    20      void writeValueAsFloat(Float f);
    21
    22      void writeValueAsBoolean(boolean b);
    23
    24      MessageWriter getAttributeWriter(String name);
    25
    26      MessageWriter getAttributeWriter(String name, String namespace);
    27
    28      MessageWriter getAttributeWriter(QName qname);
    29
    30      MessageWriter getElementWriter(String name);
    31
    32      MessageWriter getElementWriter(String name, String namespace);
    33
    34      MessageWriter getElementWriter(QName qname);
    35
    36      /***
    37       * Tells the MessageWriter that writing operations are completed so
    38       * it can write the end element.
    39       */
    40      void close();
    41  }