public class NamespaceBase extends AttributeBase implements javax.xml.stream.events.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 getPrefix()
getPrefix in interface javax.xml.stream.events.Namespacepublic 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 © 2012 Oracle Corpration. All Rights Reserved.