public class NamespaceEventImpl extends AttributeEventImpl implements Namespace
Namespace. Only returned via accessors in
 actual "first class" event objects (start element, end element); never
 directly via event reader.mLocationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier | Constructor and Description | 
|---|---|
protected  | 
NamespaceEventImpl(Location loc,
                  String nsURI)
Constructor for default namespace declaration. 
 | 
protected  | 
NamespaceEventImpl(Location loc,
                  String nsPrefix,
                  String nsURI)
Constructor for non-default namespace declaration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static NamespaceEventImpl | 
constructDefaultNamespace(Location loc,
                         String nsURI)  | 
static NamespaceEventImpl | 
constructNamespace(Location loc,
                  String nsPrefix,
                  String nsURI)  | 
int | 
getEventType()  | 
String | 
getNamespaceURI()  | 
String | 
getPrefix()  | 
boolean | 
isDefaultNamespaceDeclaration()  | 
boolean | 
isNamespace()  | 
equals, getDTDType, getName, getValue, hashCode, isAttribute, isSpecified, writeAsEncodedUnicode, writeEscapedAttrValue, writeUsingaddHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDTDType, getName, getValue, isSpecifiedasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodeprotected NamespaceEventImpl(Location loc, String nsURI)
public static NamespaceEventImpl constructDefaultNamespace(Location loc, String nsURI)
public static NamespaceEventImpl constructNamespace(Location loc, String nsPrefix, String nsURI)
public String getNamespaceURI()
getNamespaceURI in interface Namespacepublic boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration in interface Namespacepublic int getEventType()
getEventType in interface XMLEventgetEventType in class AttributeEventImplpublic boolean isNamespace()
isNamespace in interface XMLEventisNamespace in class BaseEventImplCopyright © 2015 fasterxml.com. All Rights Reserved.