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
Implementation of
Namespace. 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 BaseEventImpl
mLocationFields inherited from interface 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
ConstructorsModifierConstructorDescriptionprotectedNamespaceEventImpl(Location loc, String nsURI) Constructor for default namespace declaration.protectedNamespaceEventImpl(Location loc, String nsPrefix, String nsURI) Constructor for non-default namespace declaration. -
Method Summary
Modifier and TypeMethodDescriptionstatic NamespaceEventImplconstructDefaultNamespace(Location loc, String nsURI) static NamespaceEventImplconstructNamespace(Location loc, String nsPrefix, String nsURI) intbooleanbooleanMethods inherited from class AttributeEventImpl
equals, getDTDType, getName, getValue, hashCode, isAttribute, isSpecified, writeAsEncodedUnicode, writeEscapedAttrValue, writeUsingMethods inherited from class BaseEventImpl
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringMethods inherited from interface Attribute
getDTDType, getName, getValue, isSpecifiedMethods inherited from interface XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Constructor Details
-
NamespaceEventImpl
-
NamespaceEventImpl
-
-
Method Details
-
constructDefaultNamespace
-
constructNamespace
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespace
-
getPrefix
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclarationin interfaceNamespace
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent- Overrides:
getEventTypein classAttributeEventImpl
-
isNamespace
public boolean isNamespace()- Specified by:
isNamespacein interfaceXMLEvent- Overrides:
isNamespacein classBaseEventImpl
-