Package org.codehaus.stax2.ri.evt
Class NamespaceEventImpl
- java.lang.Object
-
- org.codehaus.stax2.ri.evt.BaseEventImpl
-
- org.codehaus.stax2.ri.evt.AttributeEventImpl
-
- org.codehaus.stax2.ri.evt.NamespaceEventImpl
-
- All Implemented Interfaces:
Attribute
,Namespace
,XMLEvent
,XMLStreamConstants
,XMLEvent2
public class NamespaceEventImpl extends AttributeEventImpl implements Namespace
Implementation ofNamespace
. Only returned via accessors in actual "first class" event objects (start element, end element); never directly via event reader.
-
-
Field Summary
-
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
-
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
-
Constructor Summary
Constructors Modifier Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.codehaus.stax2.ri.evt.AttributeEventImpl
equals, getDTDType, getName, getValue, hashCode, isAttribute, isSpecified, writeAsEncodedUnicode, writeEscapedAttrValue, writeUsing
-
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.Attribute
getDTDType, getName, getValue, isSpecified
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
Method Detail
-
constructDefaultNamespace
public static NamespaceEventImpl constructDefaultNamespace(Location loc, String nsURI)
-
constructNamespace
public static NamespaceEventImpl constructNamespace(Location loc, String nsPrefix, String nsURI)
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNamespace
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
- Specified by:
isDefaultNamespaceDeclaration
in interfaceNamespace
-
getEventType
public int getEventType()
- Specified by:
getEventType
in interfaceXMLEvent
- Overrides:
getEventType
in classAttributeEventImpl
-
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace
in interfaceXMLEvent
- Overrides:
isNamespace
in classBaseEventImpl
-
-