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 Map |
attributes
The element attributes.
|
protected QName |
name
The qualified element name.
|
protected NamespaceContext |
namespaceCtx
The namespace context.
|
protected 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,
Iterator attributes,
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) |
Iterator |
getAttributes() |
int |
getEventType()
Returns
XMLStreamConstants.START_ELEMENT. |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
Iterator |
getNamespaces() |
String |
getNamespaceURI(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 Map attributes
protected Map namespaces
protected NamespaceContext namespaceCtx
public StartElementEvent(QName name, NamespaceContext namespaceCtx, Location location)
public StartElementEvent(QName name, Iterator attributes, 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 Iterator getAttributes()
getAttributes in interface StartElementpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface StartElementpublic Iterator getNamespaces()
getNamespaces in interface StartElementpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface StartElementCopyright © 2024. All rights reserved.