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.mLocation
ATTRIBUTE, 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, writeUsing
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDTDType, getName, getValue, isSpecified
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
protected 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 Namespace
public boolean isDefaultNamespaceDeclaration()
isDefaultNamespaceDeclaration
in interface Namespace
public int getEventType()
getEventType
in interface XMLEvent
getEventType
in class AttributeEventImpl
public boolean isNamespace()
isNamespace
in interface XMLEvent
isNamespace
in class BaseEventImpl
Copyright © 2015 fasterxml.com. All Rights Reserved.