javax.xml.stream.events
Interface Attribute

All Superinterfaces:
XMLEvent, XMLStreamConstants
All Known Subinterfaces:
Namespace

public interface Attribute
extends XMLEvent

An attribute event.


Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Method Summary
 String getDTDType()
          Returns the type of this attribute.
 QName getName()
          Returns the name of this attribute.
 String getValue()
          Returns the normalized value of this attribute.
 boolean isSpecified()
          Indicates whether this attribute was specified in the input source, or just defaulted by the DTD.
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Method Detail

getName

QName getName()
Returns the name of this attribute.


getValue

String getValue()
Returns the normalized value of this attribute.


getDTDType

String getDTDType()
Returns the type of this attribute.


isSpecified

boolean isSpecified()
Indicates whether this attribute was specified in the input source, or just defaulted by the DTD.