com.sun.xml.fastinfoset.stax.events
Class NamespaceBase

java.lang.Object
  extended bycom.sun.xml.fastinfoset.stax.events.EventBase
      extended bycom.sun.xml.fastinfoset.stax.events.AttributeBase
          extended bycom.sun.xml.fastinfoset.stax.events.NamespaceBase
All Implemented Interfaces:
javax.xml.stream.events.Attribute, javax.xml.stream.events.Namespace, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

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


Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
 
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(java.lang.String namespaceURI)
          a namespace attribute has a form: xmlns:NCName="URI reference"
NamespaceBase(java.lang.String prefix, java.lang.String namespaceURI)
          Create a new Namespace
 
Method Summary
 java.lang.String getNamespaceURI()
           
 java.lang.String getPrefix()
           
 boolean isDefaultNamespaceDeclaration()
           
 boolean isNamespace()
          A utility function to check if this event is a Namespace.
 
Methods inherited from class com.sun.xml.fastinfoset.stax.events.AttributeBase
getDTDType, getLocalName, getName, getValue, isSpecified, setAttributeType, setName, setSpecified, setValue, toString
 
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, 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, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

NamespaceBase

public NamespaceBase(java.lang.String namespaceURI)
a namespace attribute has a form: xmlns:NCName="URI reference"


NamespaceBase

public NamespaceBase(java.lang.String prefix,
                     java.lang.String namespaceURI)
Create a new Namespace

Parameters:
prefix - prefix of a namespace is the local name for an attribute
namespaceURI - the uri reference of a namespace is the value for an attribute
Method Detail

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

isNamespace

public boolean isNamespace()
Description copied from class: EventBase
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 EventBase
See Also:
Namespace

isDefaultNamespaceDeclaration

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