public class NamespaceBase extends AttributeBase implements Namespace
_eventType, _locationATTRIBUTE, 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, toStringasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDTDType, getName, getValue, isSpecifiedasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic NamespaceBase(String namespaceURI)
public String getNamespaceURI()
getNamespaceURI in interface Namespacepublic boolean isNamespace()
EventBaseisNamespace in interface XMLEventisNamespace in class EventBaseNamespacepublic boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration in interface NamespaceCopyright © 2005–2017 Oracle Corporation. All rights reserved.