public class NamespaceEvent extends AttributeEvent implements Namespace
Namespace event implementation.| Modifier and Type | Field and Description |
|---|---|
static QName |
DEFAULT_NS_DECL |
location, schemaTypeATTRIBUTE, 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 |
|---|
NamespaceEvent(java.lang.String prefix,
java.lang.String nsURI) |
NamespaceEvent(java.lang.String prefix,
java.lang.String nsURI,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Returns
XMLStreamConstants.NAMESPACE. |
java.lang.String |
getNamespaceURI() |
java.lang.String |
getPrefix() |
boolean |
isDefaultNamespaceDeclaration() |
getDTDType, getName, getValue, isSpecifiedasCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDTDType, getName, getValue, isSpecifiedasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic static final QName DEFAULT_NS_DECL
public NamespaceEvent(java.lang.String prefix,
java.lang.String nsURI)
public NamespaceEvent(java.lang.String prefix,
java.lang.String nsURI,
Location location)
public int getEventType()
XMLStreamConstants.NAMESPACE.getEventType in interface XMLEventgetEventType in class AttributeEventpublic java.lang.String getNamespaceURI()
getNamespaceURI in interface Namespacepublic boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration in interface Namespace