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 |
|---|---|
| pack-priv NamespaceContext | |
| protected final ArrayList | |
| protected final QName | |
| protected final ArrayList | |
| protected NamespaceContext | _parentNsCtxt
Enclosing namespace context |
| Access | Constructor and Description |
|---|---|
| protected | StartElementEventImpl(Location loc, QName name, ArrayList<Attribute> attrs, ArrayList<Namespace> nsDecls, NamespaceContext parentNsCtxt)
|
| Modifier and Type | Method and Description |
|---|---|
| public StartElement | asStartElement()
Overrides org. Implements javax. |
| public static StartElementEventImpl | |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract org. |
| public Attribute | getAttributeByName(QName
the qname of the desired attribute nameIn)Implements javax. |
| public Iterator | getAttributes()
Implements javax. |
| public int | getEventType()
Implements abstract org. Implements javax. |
| public final QName | |
| public NamespaceContext | getNamespaceContext()
Implements javax. |
| public Iterator | getNamespaces()
Implements javax. |
| public String | getNamespaceURI(String
the prefix to lookup prefix)Implements javax. |
| public int | hashCode()
Implements abstract org. |
| public boolean | isStartElement()
Overrides org. Implements javax. |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data w)Implements abstract org. Implements javax. |
| public void | writeUsing(XMLStreamWriter2 sw)
Implements abstract org. Implements org. |
| _actualNsCtxt | back to summary |
|---|---|
| pack-priv NamespaceContext _actualNsCtxt | |
| _attrs | back to summary |
|---|---|
| protected final ArrayList<Attribute> _attrs | |
| _name | back to summary |
|---|---|
| protected final QName _name | |
| _nsDecls | back to summary |
|---|---|
| protected final ArrayList<Namespace> _nsDecls | |
| _parentNsCtxt | back to summary |
|---|---|
| protected NamespaceContext _parentNsCtxt Enclosing namespace context | |
| StartElementEventImpl | back to summary |
|---|---|
| protected StartElementEventImpl(Location loc, QName name, ArrayList<Attribute> attrs, ArrayList<Namespace> nsDecls, NamespaceContext parentNsCtxt) | |
| asStartElement | back to summary |
|---|---|
| public StartElement asStartElement() Overrides org. Implements javax. Doc from javax. Returns this event as a start element event, may result in a class cast exception if this event is not a start element.
| |
| construct | back to summary |
|---|---|
| public static StartElementEventImpl construct(Location loc, QName name, Iterator<?> attrIt, Iterator<?> nsDeclIt, NamespaceContext nsCtxt) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract org. Doc from org. Declared abstract to force redefinition by sub-classes
| |
| getAttributeByName | back to summary |
|---|---|
| public Attribute getAttributeByName(QName nameIn) Implements javax. Doc from javax. Returns the attribute referred to by the qname. | |
| getAttributes | back to summary |
|---|---|
| public Iterator Implements javax. Doc from javax. Returns an Iterator of non-namespace attributes declared on this START_ELEMENT.
Returns an empty iterator if there are no attributes.
The iterator must contain only implementations of the
| |
| getEventType | back to summary |
|---|---|
| public int getEventType() Implements abstract org. Implements javax. Doc from javax. Returns an integer code for this event.
| |
| getName | back to summary |
|---|---|
| public final QName getName() Implements javax. Doc from javax. Get the name of this event | |
| getNamespaceContext | back to summary |
|---|---|
| public NamespaceContext getNamespaceContext() Implements javax. Doc from javax. Gets a read-only namespace context. If no context is available this method will return an empty namespace context. The NamespaceContext contains information about all namespaces in scope for this StartElement.
| |
| getNamespaces | back to summary |
|---|---|
| public Iterator Implements javax. Doc from javax. Returns an Iterator of namespaces declared on this element. This Iterator does not contain previously declared namespaces unless they appear on the current START_ELEMENT. Therefore this list may contain redeclared namespaces and duplicate namespace declarations. Use the getNamespaceContext() method to get the current context of namespace declarations. The iterator must contain only implementations of the
A | |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI(String prefix) Implements javax. Doc from javax. Gets the value that the prefix is bound to in the context of this element. Returns null if the prefix is not bound in this context | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from org. Declared abstract to force redefinition by sub-classes
| |
| isStartElement | back to summary |
|---|---|
| public boolean isStartElement() Overrides org. Implements javax. Doc from javax. A utility function to check if this event is a StartElement.
| |
| writeAsEncodedUnicode | back to summary |
|---|---|
| public void writeAsEncodedUnicode(Writer w) throws XMLStreamException Implements abstract org. Implements javax. Doc from javax. This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. No indentation or whitespace should be outputted. Any user defined event type SHALL have this method called when being written to on an output stream. Built in Event types MUST implement this method, but implementations MAY choose not call these methods for optimizations reasons when writing out built in Events to an output stream. The output generated MUST be equivalent in terms of the infoset expressed.
| |
| writeUsing | back to summary |
|---|---|
| public void writeUsing(XMLStreamWriter2 sw) throws XMLStreamException Implements abstract org. Implements org.
| |