public class AttributeBase
extends java.lang.Object
implements javax.xml.stream.events.Attribute, javax.xml.stream.Location
An implementation of the Attribute class.
AttributeBase
public AttributeBase(String prefix,
String localName,
String value)
AttributeBase
public AttributeBase(String prefix,
String namespaceURI,
String localName,
String value,
String attributeType)
AttributeBase
public AttributeBase(javax.xml.namespace.QName name,
String value)
asCharacters
public javax.xml.stream.events.Characters asCharacters()
- asCharacters in interface javax.xml.stream.events.XMLEvent
asEndElement
public javax.xml.stream.events.EndElement asEndElement()
- asEndElement in interface javax.xml.stream.events.XMLEvent
asStartElement
public javax.xml.stream.events.StartElement asStartElement()
- asStartElement in interface javax.xml.stream.events.XMLEvent
getCharacterOffset
public int getCharacterOffset()
- getCharacterOffset in interface javax.xml.stream.Location
getColumnNumber
public int getColumnNumber()
- getColumnNumber in interface javax.xml.stream.Location
getDTDType
public String getDTDType()
- getDTDType in interface javax.xml.stream.events.Attribute
getEventType
public int getEventType()
- getEventType in interface javax.xml.stream.events.XMLEvent
getLineNumber
public int getLineNumber()
- getLineNumber in interface javax.xml.stream.Location
getLocalName
public String getLocalName()
getLocation
public javax.xml.stream.Location getLocation()
- getLocation in interface javax.xml.stream.events.XMLEvent
getLocationURI
public String getLocationURI()
getName
public javax.xml.namespace.QName getName()
- getName in interface javax.xml.stream.events.Attribute
getNamespaceURI
public String getNamespaceURI()
getPublicId
public String getPublicId()
- getPublicId in interface javax.xml.stream.Location
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- getSchemaType in interface javax.xml.stream.events.XMLEvent
getSourceName
public String getSourceName()
getSystemId
public String getSystemId()
- getSystemId in interface javax.xml.stream.Location
getValue
public String getValue()
- getValue in interface javax.xml.stream.events.Attribute
hasName
public boolean hasName()
isAttribute
public boolean isAttribute()
- isAttribute in interface javax.xml.stream.events.XMLEvent
isCharacters
public boolean isCharacters()
- isCharacters in interface javax.xml.stream.events.XMLEvent
isDefault
public boolean isDefault()
isEndDocument
public boolean isEndDocument()
- isEndDocument in interface javax.xml.stream.events.XMLEvent
isEndElement
public boolean isEndElement()
- isEndElement in interface javax.xml.stream.events.XMLEvent
isEndEntity
public boolean isEndEntity()
isEntityReference
public boolean isEntityReference()
- isEntityReference in interface javax.xml.stream.events.XMLEvent
isNamespace
public boolean isNamespace()
- isNamespace in interface javax.xml.stream.events.XMLEvent
isNamespaceDeclaration
public boolean isNamespaceDeclaration()
isProcessingInstruction
public boolean isProcessingInstruction()
- isProcessingInstruction in interface javax.xml.stream.events.XMLEvent
isSpecified
public boolean isSpecified()
By default, all attributes are created as specified since RI doesn't
handle attribute defaulting.
- isSpecified in interface javax.xml.stream.events.Attribute
isStartDocument
public boolean isStartDocument()
- isStartDocument in interface javax.xml.stream.events.XMLEvent
isStartElement
public boolean isStartElement()
- isStartElement in interface javax.xml.stream.events.XMLEvent
isStartEntity
public boolean isStartEntity()
recycle
public void recycle()
setCharacterOffset
public void setCharacterOffset(int c)
setColumnNumber
public void setColumnNumber(int col)
setLineNumber
public void setLineNumber(int line)
setLocationURI
public void setLocationURI(String uri)
setNamespaceURI
public void setNamespaceURI(String uri)
toString
public String toString()
writeAsEncodedUnicode
public void writeAsEncodedUnicode(Writer writer)
throws javax.xml.stream.XMLStreamException
- writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent
writeEncodedChar
public static void writeEncodedChar(java.io.Writer writer,
char c)
throws java.io.IOException