com.sun.xml.stream.events
Class NamespaceImpl

java.lang.Object
  extended by com.sun.xml.stream.events.DummyEvent
      extended by com.sun.xml.stream.events.AttributeImpl
          extended by com.sun.xml.stream.events.NamespaceImpl
All Implemented Interfaces:
javax.xml.stream.events.Attribute, javax.xml.stream.events.Namespace, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

public class NamespaceImpl
extends AttributeImpl
implements javax.xml.stream.events.Namespace

Author:
Neeraj Bajaj,K.Venugopal@sun.com Sun Microsystems.

Field Summary
 
Fields inherited from class com.sun.xml.stream.events.DummyEvent
fLocation
 
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
NamespaceImpl()
           
NamespaceImpl(java.lang.String namespaceURI)
          Creates a new instance of NamespaceImpl
NamespaceImpl(java.lang.String prefix, java.lang.String namespaceURI)
           
 
Method Summary
 int getEventType()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getPrefix()
           
protected  void init()
           
 boolean isDefaultNamespaceDeclaration()
           
 boolean isNamespace()
          A utility function to check if this event is a Namespace.
 
Methods inherited from class com.sun.xml.stream.events.AttributeImpl
getDTDType, getName, getNonNormalizedValue, getValue, isSpecified, setAttributeType, setName, setNonNormalizedValue, setSpecified, setValue, toString, writeAsEncodedUnicode
 
Methods inherited from class com.sun.xml.stream.events.DummyEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType
 
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, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

NamespaceImpl

public NamespaceImpl()

NamespaceImpl

public NamespaceImpl(java.lang.String namespaceURI)
Creates a new instance of NamespaceImpl


NamespaceImpl

public NamespaceImpl(java.lang.String prefix,
                     java.lang.String namespaceURI)
Method Detail

isDefaultNamespaceDeclaration

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

getPrefix

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

getNamespaceURI

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

init

protected void init()
Overrides:
init in class AttributeImpl

getEventType

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

isNamespace

public boolean isNamespace()
Description copied from class: DummyEvent
A utility function to check if this event is a Namespace.

Specified by:
isNamespace in interface javax.xml.stream.events.XMLEvent
Overrides:
isNamespace in class DummyEvent
See Also:
Namespace


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.