com.bea.xml.stream

Class NamespaceBase

Implemented Interfaces:
javax.xml.stream.events.Attribute, javax.xml.stream.Location, javax.xml.stream.events.Namespace

public class NamespaceBase
extends AttributeBase
implements javax.xml.stream.events.Namespace

The default implementation of the namespace class

Constructor Summary

NamespaceBase(String namespaceURI)
NamespaceBase(String prefix, String namespaceURI)

Method Summary

int
getEventType()
String
getNamespaceURI()
String
getPrefix()
boolean
isAttribute()
boolean
isDefaultNamespaceDeclaration()
boolean
isNamespace()
String
toString()

Methods inherited from class com.bea.xml.stream.AttributeBase

asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getDTDType, getEventType, getLineNumber, getLocalName, getLocation, getLocationURI, getName, getNamespaceURI, getPublicId, getSchemaType, getSourceName, getSystemId, getValue, hasName, isAttribute, isCharacters, isDefault, isEndDocument, isEndElement, isEndEntity, isEntityReference, isNamespace, isNamespaceDeclaration, isProcessingInstruction, isSpecified, isStartDocument, isStartElement, isStartEntity, recycle, setCharacterOffset, setColumnNumber, setLineNumber, setLocationURI, setNamespaceURI, toString, writeAsEncodedUnicode, writeEncodedChar

Constructor Details

NamespaceBase

public NamespaceBase(String namespaceURI)

NamespaceBase

public NamespaceBase(String prefix,
                     String namespaceURI)

Method Details

getEventType

public int getEventType()
Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent
Overrides:
getEventType in interface AttributeBase

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface javax.xml.stream.events.Namespace
Overrides:
getNamespaceURI in interface AttributeBase

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface javax.xml.stream.events.Namespace

isAttribute

public boolean isAttribute()
Specified by:
isAttribute in interface javax.xml.stream.events.XMLEvent
Overrides:
isAttribute in interface AttributeBase

isDefaultNamespaceDeclaration

public boolean isDefaultNamespaceDeclaration()
Specified by:
isDefaultNamespaceDeclaration in interface javax.xml.stream.events.Namespace

isNamespace

public boolean isNamespace()
Specified by:
isNamespace in interface javax.xml.stream.events.XMLEvent
Overrides:
isNamespace in interface AttributeBase

toString

public String toString()
Overrides:
toString in interface AttributeBase