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 TypeFieldDescriptionprotected final QNameprotected NamespaceContextEnclosing namespace contextFields 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
ConstructorsModifierConstructorDescriptionprotectedStartElementEventImpl(Location loc, QName name, ArrayList<Attribute> attrs, ArrayList<Namespace> nsDecls, NamespaceContext parentNsCtxt) -
Method Summary
Modifier and TypeMethodDescriptionstatic StartElementEventImplconstruct(Location loc, QName name, Iterator<?> attrIt, Iterator<?> nsDeclIt, NamespaceContext nsCtxt) booleanDeclared abstract to force redefinition by sub-classesgetAttributeByName(QName nameIn) intfinal QNamegetName()getNamespaceURI(String prefix) inthashCode()Declared abstract to force redefinition by sub-classesbooleanvoidvoidMethods inherited from class BaseEventImpl
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringMethods inherited from interface XMLEvent
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
-
Field Details
-
_name
-
_attrs
-
_nsDecls
-
_parentNsCtxt
Enclosing namespace context
-
-
Constructor Details
-
StartElementEventImpl
-
-
Method Details
-
construct
public static StartElementEventImpl construct(Location loc, QName name, Iterator<?> attrIt, Iterator<?> nsDeclIt, NamespaceContext nsCtxt) -
asStartElement
- Specified by:
asStartElementin interfaceXMLEvent- Overrides:
asStartElementin classBaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent- Specified by:
getEventTypein classBaseEventImpl
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElementin interfaceXMLEvent- Overrides:
isStartElementin classBaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Specified by:
writeAsEncodedUnicodein classBaseEventImpl- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsingin interfaceXMLEvent2- Specified by:
writeUsingin classBaseEventImpl- Throws:
XMLStreamException
-
getName
- Specified by:
getNamein interfaceStartElement
-
getNamespaces
- Specified by:
getNamespacesin interfaceStartElement
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceStartElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceStartElement
-
getAttributeByName
- Specified by:
getAttributeByNamein interfaceStartElement
-
getAttributes
- Specified by:
getAttributesin interfaceStartElement
-
equals
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
equalsin classBaseEventImpl
-
hashCode
public int hashCode()Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
hashCodein classBaseEventImpl
-