public class StartElementEventImpl extends BaseEventImpl implements StartElement
StartElement
implementation used when event is constructed
from already objectified data, for example when constructed by the event
factory.Modifier and Type | Field and Description |
---|---|
protected ArrayList |
mAttrs |
protected QName |
mName |
protected ArrayList |
mNsDecls |
protected NamespaceContext |
mParentNsCtxt
Enclosing namespace context
|
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 |
StartElementEventImpl(Location loc,
QName name,
ArrayList attrs,
ArrayList nsDecls,
NamespaceContext parentNsCtxt) |
Modifier and Type | Method and Description |
---|---|
StartElement |
asStartElement() |
static StartElementEventImpl |
construct(Location loc,
QName name,
Iterator attrIt,
Iterator nsDeclIt,
NamespaceContext nsCtxt) |
boolean |
equals(Object o)
Declared abstract to force redefinition by sub-classes
|
Attribute |
getAttributeByName(QName nameIn) |
Iterator |
getAttributes() |
int |
getEventType() |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
Iterator |
getNamespaces() |
String |
getNamespaceURI(String prefix) |
int |
hashCode()
Declared abstract to force redefinition by sub-classes
|
boolean |
isStartElement() |
void |
writeAsEncodedUnicode(Writer w) |
void |
writeUsing(XMLStreamWriter2 sw) |
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
protected final QName mName
protected final ArrayList mAttrs
protected final ArrayList mNsDecls
protected NamespaceContext mParentNsCtxt
protected StartElementEventImpl(Location loc, QName name, ArrayList attrs, ArrayList nsDecls, NamespaceContext parentNsCtxt)
public static StartElementEventImpl construct(Location loc, QName name, Iterator attrIt, Iterator nsDeclIt, NamespaceContext nsCtxt)
public StartElement asStartElement()
asStartElement
in interface XMLEvent
asStartElement
in class BaseEventImpl
public int getEventType()
getEventType
in interface XMLEvent
getEventType
in class BaseEventImpl
public boolean isStartElement()
isStartElement
in interface XMLEvent
isStartElement
in class BaseEventImpl
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode
in interface XMLEvent
writeAsEncodedUnicode
in class BaseEventImpl
XMLStreamException
public void writeUsing(XMLStreamWriter2 sw) throws XMLStreamException
writeUsing
in interface XMLEvent2
writeUsing
in class BaseEventImpl
XMLStreamException
public final QName getName()
getName
in interface StartElement
public Iterator getNamespaces()
getNamespaces
in interface StartElement
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface StartElement
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface StartElement
public Attribute getAttributeByName(QName nameIn)
getAttributeByName
in interface StartElement
public Iterator getAttributes()
getAttributes
in interface StartElement
public boolean equals(Object o)
BaseEventImpl
equals
in class BaseEventImpl
public int hashCode()
BaseEventImpl
hashCode
in class BaseEventImpl
Copyright © 2015 fasterxml.com. All Rights Reserved.