org.codehaus.xfire.aegis.stax.AttributeReader Maven / Gradle / Ivy
package org.codehaus.xfire.aegis.stax;
import org.codehaus.xfire.aegis.AbstractMessageReader;
import org.codehaus.xfire.aegis.MessageReader;
import javax.xml.namespace.QName;
public class AttributeReader
extends AbstractMessageReader
{
private QName name;
private String value;
public AttributeReader(QName name, String value)
{
this.name = name;
this.value = value;
}
public String getValue()
{
return value;
}
public boolean hasMoreAttributeReaders()
{
return false;
}
public MessageReader getNextAttributeReader()
{
throw new IllegalStateException();
}
public MessageReader getAttributeReader( QName qName )
{
throw new IllegalStateException();
}
public MessageReader getAttributeReader(String name, String namespace)
{
throw new IllegalStateException();
}
public boolean hasMoreElementReaders()
{
return false;
}
public MessageReader getNextElementReader()
{
throw new IllegalStateException();
}
public QName getName()
{
return name;
}
public String getLocalName()
{
return name.getLocalPart();
}
public String getNamespace()
{
return name.getNamespaceURI();
}
public String getNamespaceForPrefix( String prefix )
{
throw new IllegalStateException();
}
}