com.bea.xml.stream
Class AttributeBase
java.lang.Object
com.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.
| 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 |
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)
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.