View Javadoc

    1   package org.codehaus.xfire.aegis.stax;
    2
    3   import javax.xml.namespace.QName;
    4
    5   import org.codehaus.xfire.aegis.AbstractMessageReader;
    6   import org.codehaus.xfire.aegis.MessageReader;
    7
    8   public class AttributeReader
    9       extends AbstractMessageReader
    10  {
    11      private QName name;
    12      private String value;
    13
    14      public AttributeReader(QName name, String value)
    15      {
    16          this.name = name;
    17          this.value = value;
    18      }
    19
    20      public String getValue()
    21      {
    22          return value;
    23      }
    24
    25      public boolean hasMoreAttributeReaders()
    26      {
    27          return false;
    28      }
    29
    30      public MessageReader getNextAttributeReader()
    31      {
    32          throw new IllegalStateException();
    33      }
    34
    35      public boolean hasMoreElementReaders()
    36      {
    37          return false;
    38      }
    39
    40      public MessageReader getNextElementReader()
    41      {
    42          throw new IllegalStateException();
    43      }
    44
    45      public QName getName()
    46      {
    47          return name;
    48      }
    49
    50      public String getLocalName()
    51      {
    52          return name.getLocalPart();
    53      }
    54
    55      public String getNamespace()
    56      {
    57          return name.getNamespaceURI();
    58      }
    59  }