public class NamespaceBase extends AttributeBase implements 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 getNamespaceURI()
getNamespaceURI
in interface Namespace
public boolean isNamespace()
EventBase
isNamespace
in interface XMLEvent
isNamespace
in class EventBase
Namespace
public boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration
in interface Namespace
Copyright © 2023 Oracle Corpration. All rights reserved.