public class NamespaceBase extends AttributeBase implements javax.xml.stream.events.Namespace
_eventType, _location
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
NamespaceBase(String namespaceURI)
a namespace attribute has a form: xmlns:NCName="URI reference"
|
NamespaceBase(String prefix,
String namespaceURI)
Create a new Namespace
|
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI() |
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(String namespaceURI)
public String getPrefix()
getPrefix
in interface javax.xml.stream.events.Namespace
public 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
Copyright © 2015 Oracle Corpration. All rights reserved.