com.bea.xml.stream
Class AttributeBase
java.lang.Object
com.bea.xml.stream.AttributeBase
- All Implemented Interfaces:
- javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.Location, javax.xml.stream.XMLStreamConstants
- Direct Known Subclasses:
- NamespaceBase
public class AttributeBase
- extends java.lang.Object
- implements javax.xml.stream.events.Attribute, javax.xml.stream.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 |
Constructor Summary |
AttributeBase(javax.xml.namespace.QName 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeBase
public AttributeBase(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value,
java.lang.String attributeType)
AttributeBase
public AttributeBase(java.lang.String prefix,
java.lang.String localName,
java.lang.String value)
AttributeBase
public AttributeBase(javax.xml.namespace.QName name,
java.lang.String value)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface javax.xml.stream.Location
setLineNumber
public void setLineNumber(int line)
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface javax.xml.stream.Location
setColumnNumber
public void setColumnNumber(int col)
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffset
in interface javax.xml.stream.Location
setCharacterOffset
public void setCharacterOffset(int c)
getLocationURI
public java.lang.String getLocationURI()
setLocationURI
public void setLocationURI(java.lang.String uri)
getEventType
public int getEventType()
- Specified by:
getEventType
in interface javax.xml.stream.events.XMLEvent
hasName
public boolean hasName()
getName
public javax.xml.namespace.QName getName()
- Specified by:
getName
in interface javax.xml.stream.events.Attribute
isNamespaceDeclaration
public boolean isNamespaceDeclaration()
getLocalName
public java.lang.String getLocalName()
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interface javax.xml.stream.events.Attribute
getDTDType
public java.lang.String getDTDType()
- Specified by:
getDTDType
in interface javax.xml.stream.events.Attribute
getNamespaceURI
public java.lang.String getNamespaceURI()
setNamespaceURI
public void setNamespaceURI(java.lang.String uri)
isSpecified
public boolean isSpecified()
- By default, all attributes are created as specified since RI doesn't
handle attribute defaulting.
- Specified by:
isSpecified
in interface javax.xml.stream.events.Attribute
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement
in interface javax.xml.stream.events.XMLEvent
isEndElement
public boolean isEndElement()
- Specified by:
isEndElement
in interface javax.xml.stream.events.XMLEvent
isEntityReference
public boolean isEntityReference()
- Specified by:
isEntityReference
in interface javax.xml.stream.events.XMLEvent
isProcessingInstruction
public boolean isProcessingInstruction()
- Specified by:
isProcessingInstruction
in interface javax.xml.stream.events.XMLEvent
isCharacters
public boolean isCharacters()
- Specified by:
isCharacters
in interface javax.xml.stream.events.XMLEvent
isAttribute
public boolean isAttribute()
- Specified by:
isAttribute
in interface javax.xml.stream.events.XMLEvent
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace
in interface javax.xml.stream.events.XMLEvent
isStartDocument
public boolean isStartDocument()
- Specified by:
isStartDocument
in interface javax.xml.stream.events.XMLEvent
isEndDocument
public boolean isEndDocument()
- Specified by:
isEndDocument
in interface javax.xml.stream.events.XMLEvent
isEndEntity
public boolean isEndEntity()
isStartEntity
public boolean isStartEntity()
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicId
in interface javax.xml.stream.Location
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interface javax.xml.stream.Location
getLocation
public javax.xml.stream.Location getLocation()
- Specified by:
getLocation
in interface javax.xml.stream.events.XMLEvent
asStartElement
public javax.xml.stream.events.StartElement asStartElement()
- Specified by:
asStartElement
in interface javax.xml.stream.events.XMLEvent
asEndElement
public javax.xml.stream.events.EndElement asEndElement()
- Specified by:
asEndElement
in interface javax.xml.stream.events.XMLEvent
asCharacters
public javax.xml.stream.events.Characters asCharacters()
- Specified by:
asCharacters
in interface javax.xml.stream.events.XMLEvent
recycle
public void recycle()
isDefault
public boolean isDefault()
getSourceName
public java.lang.String getSourceName()
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- Specified by:
getSchemaType
in interface javax.xml.stream.events.XMLEvent
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode
in interface javax.xml.stream.events.XMLEvent
- Throws:
javax.xml.stream.XMLStreamException