Package javanet.staxutils.events
Class StartElementEvent
java.lang.Object
javanet.staxutils.events.AbstractXMLEvent
javanet.staxutils.events.StartElementEvent
- All Implemented Interfaces:
Serializable,Cloneable,ExtendedXMLEvent,StartElement,XMLEvent,XMLStreamConstants
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.- Version:
- $Revision: 1.5 $
- Author:
- Christian Niles
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapThe element attributes.protected QNameThe qualified element name.protected NamespaceContextThe namespace context.protected MapThe element namespaces.Fields inherited from class javanet.staxutils.events.AbstractXMLEvent
location, schemaTypeFields inherited from interface javax.xml.stream.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
ConstructorsConstructorDescriptionStartElementEvent(QName name, Iterator attributes, Iterator namespaces, NamespaceContext namespaceCtx, Location location, QName schemaType) StartElementEvent(QName name, NamespaceContext namespaceCtx, Location location) -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeByName(QName name) intReturnsXMLStreamConstants.START_ELEMENT.getName()getNamespaceURI(String prefix) Methods inherited from class javanet.staxutils.events.AbstractXMLEvent
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
name
The qualified element name. -
attributes
The element attributes. -
namespaces
The element namespaces. -
namespaceCtx
The namespace context.
-
-
Constructor Details
-
StartElementEvent
-
StartElementEvent
-
StartElementEvent
-
-
Method Details
-
getEventType
public int getEventType()ReturnsXMLStreamConstants.START_ELEMENT.- Specified by:
getEventTypein interfaceXMLEvent
-
getName
- Specified by:
getNamein interfaceStartElement
-
getAttributeByName
- Specified by:
getAttributeByNamein interfaceStartElement
-
getAttributes
- Specified by:
getAttributesin interfaceStartElement
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceStartElement
-
getNamespaces
- Specified by:
getNamespacesin interfaceStartElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceStartElement
-