View Javadoc

    1   package org.codehaus.xfire.aegis.yom;
    2
    3   import javax.xml.namespace.QName;
    4
    5   import org.codehaus.xfire.aegis.AbstractMessageWriter;
    6   import org.codehaus.xfire.aegis.MessageWriter;
    7   import org.codehaus.yom.Attribute;
    8
    9   public class AttributeWriter
    10      extends AbstractMessageWriter
    11  {
    12      private Attribute att;
    13      private String namespace;
    14      private String name;
    15      private String prefix;
    16
    17      public AttributeWriter(Attribute att)
    18      {
    19          this.att = att;
    20      }
    21
    22      public void writeValue(Object value)
    23      {
    24          att.setValue(value.toString());
    25      }
    26
    27      public MessageWriter getAttributeWriter(String name)
    28      {
    29          throw new IllegalStateException();
    30      }
    31
    32      public MessageWriter getAttributeWriter(String name, String namespace)
    33      {
    34          throw new IllegalStateException();
    35      }
    36
    37      public MessageWriter getAttributeWriter(QName qname)
    38      {
    39          throw new IllegalStateException();
    40      }
    41
    42      public MessageWriter getElementWriter(String name)
    43      {
    44          throw new IllegalStateException();
    45      }
    46
    47      public MessageWriter getElementWriter(String name, String namespace)
    48      {
    49          throw new IllegalStateException();
    50      }
    51
    52      public MessageWriter getElementWriter(QName qname)
    53      {
    54          throw new IllegalStateException();
    55      }
    56
    57      public void close()
    58      {
    59      }
    60  }