Package com.bea.xml.stream
Class AttributeBase
java.lang.Object
com.bea.xml.stream.AttributeBase
- All Implemented Interfaces:
Attribute,XMLEvent,Location,XMLStreamConstants
- Direct Known Subclasses:
NamespaceBase
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
ConstructorsConstructorDescriptionAttributeBase(String prefix, String localName, String value) AttributeBase(String prefix, String namespaceURI, String localName, String value, String attributeType) AttributeBase(QName name, String value) -
Method Summary
Modifier and TypeMethodDescriptionintintintintgetName()getValue()booleanhasName()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanBy default, all attributes are created as specified since RI doesn't handle attribute defaulting.booleanbooleanbooleanvoidrecycle()voidsetCharacterOffset(int c) voidsetColumnNumber(int col) voidsetLineNumber(int line) voidsetLocationURI(String uri) voidsetNamespaceURI(String uri) toString()voidwriteAsEncodedUnicode(Writer writer) static voidwriteEncodedChar(Writer writer, char c)
-
Constructor Details
-
AttributeBase
-
AttributeBase
-
AttributeBase
-
-
Method Details
-
toString
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocation
-
setLineNumber
public void setLineNumber(int line) -
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocation
-
setColumnNumber
public void setColumnNumber(int col) -
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffsetin interfaceLocation
-
setCharacterOffset
public void setCharacterOffset(int c) -
getLocationURI
-
setLocationURI
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent
-
hasName
public boolean hasName() -
getName
-
isNamespaceDeclaration
public boolean isNamespaceDeclaration() -
getLocalName
-
getValue
-
getDTDType
- Specified by:
getDTDTypein interfaceAttribute
-
getNamespaceURI
-
setNamespaceURI
-
isSpecified
public boolean isSpecified()By default, all attributes are created as specified since RI doesn't handle attribute defaulting.- Specified by:
isSpecifiedin interfaceAttribute
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElementin interfaceXMLEvent
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElementin interfaceXMLEvent
-
isEntityReference
public boolean isEntityReference()- Specified by:
isEntityReferencein interfaceXMLEvent
-
isProcessingInstruction
public boolean isProcessingInstruction()- Specified by:
isProcessingInstructionin interfaceXMLEvent
-
isCharacters
public boolean isCharacters()- Specified by:
isCharactersin interfaceXMLEvent
-
isAttribute
public boolean isAttribute()- Specified by:
isAttributein interfaceXMLEvent
-
isNamespace
public boolean isNamespace()- Specified by:
isNamespacein interfaceXMLEvent
-
isStartDocument
public boolean isStartDocument()- Specified by:
isStartDocumentin interfaceXMLEvent
-
isEndDocument
public boolean isEndDocument()- Specified by:
isEndDocumentin interfaceXMLEvent
-
isEndEntity
public boolean isEndEntity() -
isStartEntity
public boolean isStartEntity() -
getPublicId
- Specified by:
getPublicIdin interfaceLocation
-
getSystemId
- Specified by:
getSystemIdin interfaceLocation
-
getLocation
- Specified by:
getLocationin interfaceXMLEvent
-
asStartElement
- Specified by:
asStartElementin interfaceXMLEvent
-
asEndElement
- Specified by:
asEndElementin interfaceXMLEvent
-
asCharacters
- Specified by:
asCharactersin interfaceXMLEvent
-
recycle
public void recycle() -
isDefault
public boolean isDefault() -
getSourceName
-
getSchemaType
- Specified by:
getSchemaTypein interfaceXMLEvent
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Throws:
XMLStreamException
-
writeEncodedChar
- Throws:
IOException
-