com.sun.xml.fastinfoset.stax.events
public class NamespaceBase extends AttributeBase implements javax.xml.stream.events.Namespace
_eventType, _location
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespaceURI() |
java.lang.String |
getPrefix() |
boolean |
isDefaultNamespaceDeclaration() |
boolean |
isNamespace()
A utility function to check if this event is a Namespace.
|
getDTDType, getLocalName, getName, getValue, isSpecified, setAttributeType, setName, setSpecified, setValue, toString
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDTDType, getName, getValue, isSpecified
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public NamespaceBase(java.lang.String namespaceURI)
public NamespaceBase(java.lang.String prefix, java.lang.String namespaceURI)
prefix
- prefix of a namespace is the local name for an attributenamespaceURI
- the uri reference of a namespace is the value for an attributepublic java.lang.String getPrefix()
getPrefix
in interface javax.xml.stream.events.Namespace
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface javax.xml.stream.events.Namespace
public boolean isNamespace()
EventBase
isNamespace
in interface javax.xml.stream.events.XMLEvent
isNamespace
in class EventBase
Namespace
public boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration
in interface javax.xml.stream.events.Namespace