public class StartElementEvent extends AbstractXMLEvent implements StartElement
StartElement event implementation. This event will coalesce its namespaces
into an internal NamespaceContext, available via
getNamespaceContext(). It will also create any implicit namespaces
necessary to satisfy the element's name and those of its attributes.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
attributes
The element attributes.
|
protected QName |
name
The qualified element name.
|
protected NamespaceContext |
namespaceCtx
The namespace context.
|
protected java.util.Map |
namespaces
The element namespaces.
|
location, schemaTypeATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
StartElementEvent(QName name,
java.util.Iterator attributes,
java.util.Iterator namespaces,
NamespaceContext namespaceCtx,
Location location,
QName schemaType) |
StartElementEvent(QName name,
NamespaceContext namespaceCtx,
Location location) |
StartElementEvent(StartElement that) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttributeByName(QName name) |
java.util.Iterator |
getAttributes() |
int |
getEventType()
Returns
XMLStreamConstants.START_ELEMENT. |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
java.util.Iterator |
getNamespaces() |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodeprotected QName name
protected java.util.Map attributes
protected java.util.Map namespaces
protected NamespaceContext namespaceCtx
public StartElementEvent(QName name, NamespaceContext namespaceCtx, Location location)
public StartElementEvent(QName name, java.util.Iterator attributes, java.util.Iterator namespaces, NamespaceContext namespaceCtx, Location location, QName schemaType)
public StartElementEvent(StartElement that)
public int getEventType()
XMLStreamConstants.START_ELEMENT.getEventType in interface XMLEventpublic QName getName()
getName in interface StartElementpublic Attribute getAttributeByName(QName name)
getAttributeByName in interface StartElementpublic java.util.Iterator getAttributes()
getAttributes in interface StartElementpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface StartElementpublic java.util.Iterator getNamespaces()
getNamespaces in interface StartElementpublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface StartElement