com.bea.xml.stream
Class AttributeBase

java.lang.Object
  extended bycom.bea.xml.stream.AttributeBase
All Implemented Interfaces:
Attribute, Location, XMLEvent, XMLStreamConstants
Direct Known Subclasses:
NamespaceBase

public class AttributeBase
extends Object
implements Attribute, Location

An implementation of the Attribute class.


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
 
Constructor Summary
AttributeBase(QName name, String value)
           
AttributeBase(String prefix, String localName, String value)
           
AttributeBase(String prefix, String namespaceURI, String localName, String value, String attributeType)
           
 
Method Summary
 Characters asCharacters()
           
 EndElement asEndElement()
           
 StartElement asStartElement()
           
 int getCharacterOffset()
           
 int getColumnNumber()
           
 String getDTDType()
           
 int getEventType()
           
 int getLineNumber()
           
 String getLocalName()
           
 Location getLocation()
           
 String getLocationURI()
           
 QName getName()
           
 String getNamespaceURI()
           
 String getPublicId()
           
 QName getSchemaType()
           
 String getSourceName()
           
 String getSystemId()
           
 String getValue()
           
 boolean hasName()
           
 boolean isAttribute()
           
 boolean isCharacters()
           
 boolean isDefault()
           
 boolean isEndDocument()
           
 boolean isEndElement()
           
 boolean isEndEntity()
           
 boolean isEntityReference()
           
 boolean isNamespace()
           
 boolean isNamespaceDeclaration()
           
 boolean isProcessingInstruction()
           
 boolean isSpecified()
           
 boolean isStartDocument()
           
 boolean isStartElement()
           
 boolean isStartEntity()
           
 void recycle()
           
 void setCharacterOffset(int c)
           
 void setColumnNumber(int col)
           
 void setLineNumber(int line)
           
 void setLocationURI(String uri)
           
 void setNamespaceURI(String uri)
           
 String toString()
           
 void writeAsEncodedUnicode(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeBase

public AttributeBase(String prefix,
                     String namespaceURI,
                     String localName,
                     String value,
                     String attributeType)

AttributeBase

public AttributeBase(String prefix,
                     String localName,
                     String value)

AttributeBase

public AttributeBase(QName name,
                     String value)
Method Detail

toString

public String toString()

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface Location

setLineNumber

public void setLineNumber(int line)

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface Location

setColumnNumber

public void setColumnNumber(int col)

getCharacterOffset

public int getCharacterOffset()
Specified by:
getCharacterOffset in interface Location

setCharacterOffset

public void setCharacterOffset(int c)

getLocationURI

public String getLocationURI()

setLocationURI

public void setLocationURI(String uri)

getEventType

public int getEventType()
Specified by:
getEventType in interface XMLEvent

hasName

public boolean hasName()

getName

public QName getName()
Specified by:
getName in interface Attribute

isNamespaceDeclaration

public boolean isNamespaceDeclaration()

getLocalName

public String getLocalName()

getValue

public String getValue()
Specified by:
getValue in interface Attribute

getDTDType

public String getDTDType()
Specified by:
getDTDType in interface Attribute

getNamespaceURI

public String getNamespaceURI()

setNamespaceURI

public void setNamespaceURI(String uri)

isSpecified

public boolean isSpecified()
Specified by:
isSpecified in interface Attribute

isStartElement

public boolean isStartElement()
Specified by:
isStartElement in interface XMLEvent

isEndElement

public boolean isEndElement()
Specified by:
isEndElement in interface XMLEvent

isEntityReference

public boolean isEntityReference()
Specified by:
isEntityReference in interface XMLEvent

isProcessingInstruction

public boolean isProcessingInstruction()
Specified by:
isProcessingInstruction in interface XMLEvent

isCharacters

public boolean isCharacters()
Specified by:
isCharacters in interface XMLEvent

isAttribute

public boolean isAttribute()
Specified by:
isAttribute in interface XMLEvent

isNamespace

public boolean isNamespace()
Specified by:
isNamespace in interface XMLEvent

isStartDocument

public boolean isStartDocument()
Specified by:
isStartDocument in interface XMLEvent

isEndDocument

public boolean isEndDocument()
Specified by:
isEndDocument in interface XMLEvent

isEndEntity

public boolean isEndEntity()

isStartEntity

public boolean isStartEntity()

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Location

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Location

getLocation

public Location getLocation()
Specified by:
getLocation in interface XMLEvent

asStartElement

public StartElement asStartElement()
Specified by:
asStartElement in interface XMLEvent

asEndElement

public EndElement asEndElement()
Specified by:
asEndElement in interface XMLEvent

asCharacters

public Characters asCharacters()
Specified by:
asCharacters in interface XMLEvent

recycle

public void recycle()

isDefault

public boolean isDefault()

getSourceName

public String getSourceName()

getSchemaType

public QName getSchemaType()
Specified by:
getSchemaType in interface XMLEvent

writeAsEncodedUnicode

public void writeAsEncodedUnicode(Writer writer)
                           throws XMLStreamException
Specified by:
writeAsEncodedUnicode in interface XMLEvent
Throws:
XMLStreamException


Copyright © 2004 . All Rights Reserved.