Package org.codehaus.stax2.ri.evt
Class StartElementEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.StartElementEventImpl
- All Implemented Interfaces:
StartElement
,XMLEvent
,XMLStreamConstants
,XMLEvent2
Wstx
StartElement
implementation used when event is constructed
from already objectified data, for example when constructed by the event
factory.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) NamespaceContext
protected final QName
protected NamespaceContext
Enclosing namespace contextFields 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
ConstructorsModifierConstructorDescriptionprotected
StartElementEventImpl
(Location loc, QName name, ArrayList<Attribute> attrs, ArrayList<Namespace> nsDecls, NamespaceContext parentNsCtxt) -
Method Summary
Modifier and TypeMethodDescriptionstatic StartElementEventImpl
construct
(Location loc, QName name, Iterator<?> attrIt, Iterator<?> nsDeclIt, NamespaceContext nsCtxt) boolean
Declared abstract to force redefinition by sub-classesgetAttributeByName
(QName nameIn) int
final QName
getName()
getNamespaceURI
(String prefix) int
hashCode()
Declared abstract to force redefinition by sub-classesboolean
void
void
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, 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.XMLEvent
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
-
Field Details
-
_name
-
_attrs
-
_nsDecls
-
_parentNsCtxt
Enclosing namespace context -
_actualNsCtxt
NamespaceContext _actualNsCtxt
-
-
Constructor Details
-
StartElementEventImpl
-
-
Method Details
-
construct
public static StartElementEventImpl construct(Location loc, QName name, Iterator<?> attrIt, Iterator<?> nsDeclIt, NamespaceContext nsCtxt) -
asStartElement
- Specified by:
asStartElement
in interfaceXMLEvent
- Overrides:
asStartElement
in classBaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
- Specified by:
getEventType
in classBaseEventImpl
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElement
in interfaceXMLEvent
- Overrides:
isStartElement
in classBaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Specified by:
writeAsEncodedUnicode
in classBaseEventImpl
- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsing
in interfaceXMLEvent2
- Specified by:
writeUsing
in classBaseEventImpl
- Throws:
XMLStreamException
-
getName
- Specified by:
getName
in interfaceStartElement
-
getNamespaces
- Specified by:
getNamespaces
in interfaceStartElement
-
getNamespaceContext
- Specified by:
getNamespaceContext
in interfaceStartElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceStartElement
-
getAttributeByName
- Specified by:
getAttributeByName
in interfaceStartElement
-
getAttributes
- Specified by:
getAttributes
in interfaceStartElement
-
equals
Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
equals
in classBaseEventImpl
-
hashCode
public int hashCode()Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
hashCode
in classBaseEventImpl
-