com.sun.xml.fastinfoset.stax.events
Class AttributeBase

java.lang.Object
  extended bycom.sun.xml.fastinfoset.stax.events.EventBase
      extended bycom.sun.xml.fastinfoset.stax.events.AttributeBase
All Implemented Interfaces:
javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Direct Known Subclasses:
NamespaceBase

public class AttributeBase
extends EventBase
implements javax.xml.stream.events.Attribute


Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
 
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
 
Constructor Summary
AttributeBase()
           
AttributeBase(java.lang.String name, java.lang.String value)
           
AttributeBase(java.lang.String prefix, java.lang.String localName, java.lang.String value)
           
AttributeBase(java.lang.String prefix, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, java.lang.String attributeType)
           
 
Method Summary
 java.lang.String getDTDType()
          Gets the type of this attribute, default is the String "CDATA"
 java.lang.String getLocalName()
           
 QName getName()
          Returns the QName for this attribute
 java.lang.String getValue()
          Gets the normalized value of this attribute
 boolean isSpecified()
          A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.
 void setAttributeType(java.lang.String attributeType)
           
 void setName(QName name)
           
 void setSpecified(boolean isSpecified)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

AttributeBase

public AttributeBase()

AttributeBase

public AttributeBase(java.lang.String name,
                     java.lang.String value)

AttributeBase

public AttributeBase(java.lang.String prefix,
                     java.lang.String localName,
                     java.lang.String value)

AttributeBase

public AttributeBase(java.lang.String prefix,
                     java.lang.String namespaceURI,
                     java.lang.String localName,
                     java.lang.String value,
                     java.lang.String attributeType)
Method Detail

setName

public void setName(QName name)

getName

public QName getName()
Returns the QName for this attribute

Specified by:
getName in interface javax.xml.stream.events.Attribute

setValue

public void setValue(java.lang.String value)

getLocalName

public java.lang.String getLocalName()

getValue

public java.lang.String getValue()
Gets the normalized value of this attribute

Specified by:
getValue in interface javax.xml.stream.events.Attribute

setAttributeType

public void setAttributeType(java.lang.String attributeType)

getDTDType

public java.lang.String getDTDType()
Gets the type of this attribute, default is the String "CDATA"

Specified by:
getDTDType in interface javax.xml.stream.events.Attribute
Returns:
the type as a String, default is "CDATA"

isSpecified

public boolean isSpecified()
A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.

Specified by:
isSpecified in interface javax.xml.stream.events.Attribute
Returns:
returns true if this was specified in the start element

setSpecified

public void setSpecified(boolean isSpecified)

toString

public java.lang.String toString()