javanet.staxutils.events
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, schemaType
ATTRIBUTE, 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, writeEvent
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
protected 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 XMLEvent
public QName getName()
getName
in interface StartElement
public Attribute getAttributeByName(QName name)
getAttributeByName
in interface StartElement
public Iterator getAttributes()
getAttributes
in interface StartElement
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface StartElement
public Iterator getNamespaces()
getNamespaces
in interface StartElement
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface StartElement