javax.xml.stream.events.Attribute, javax.xml.stream.events.Namespace, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstantspublic class NamespaceBase extends AttributeBase implements javax.xml.stream.events.Namespace
_eventType, _location| Constructor | 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 | 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, getName, getValue, isSpecifiedgetDTDType, 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, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic 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.Namespacepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface javax.xml.stream.events.Namespacepublic boolean isNamespace()
EventBaseisNamespace in interface javax.xml.stream.events.XMLEventisNamespace in class EventBaseNamespacepublic boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration in interface javax.xml.stream.events.NamespaceCopyright © 2018 Oracle Corporation. All rights reserved.