com.bea.xml.stream
Class NamespaceBase

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

public class NamespaceBase
extends AttributeBase
implements Namespace

The default implementation of the namespace class


Field Summary
(package private)  boolean declaresDefaultNamespace
           
 
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
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, getLineNumber, getLocalName, getLocation, getLocationURI, getName, getPublicId, getSchemaType, getSourceName, getSystemId, getValue, hasName, isCharacters, isDefault, isEndDocument, isEndElement, isEndEntity, isEntityReference, isNamespaceDeclaration, isProcessingInstruction, isSpecified, isStartDocument, isStartElement, isStartEntity, recycle, setCharacterOffset, setColumnNumber, setLineNumber, setLocationURI, setNamespaceURI, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.Attribute
getDTDType, getName, getValue, isSpecified
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Field Detail

declaresDefaultNamespace

boolean declaresDefaultNamespace
Constructor Detail

NamespaceBase

public NamespaceBase(String prefix,
                     String namespaceURI)

NamespaceBase

public NamespaceBase(String namespaceURI)
Method Detail

getEventType

public int getEventType()
Specified by:
getEventType in interface XMLEvent
Overrides:
getEventType in class AttributeBase

isAttribute

public boolean isAttribute()
Specified by:
isAttribute in interface XMLEvent
Overrides:
isAttribute in class AttributeBase

isNamespace

public boolean isNamespace()
Specified by:
isNamespace in interface XMLEvent
Overrides:
isNamespace in class AttributeBase

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface Namespace

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface Namespace
Overrides:
getNamespaceURI in class AttributeBase

isDefaultNamespaceDeclaration

public boolean isDefaultNamespaceDeclaration()
Specified by:
isDefaultNamespaceDeclaration in interface Namespace

toString

public String toString()
Overrides:
toString in class AttributeBase


Copyright © 2004 . All Rights Reserved.