StartElement implementations Wstx uses.
| Modifier and Type | Field and Description |
|---|---|
| protected final QName | |
| protected final BaseNsContext |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public StartElement | asStartElement()
Overrides org. Implements javax. Returns this event as a start element event, may result in a class cast exception if this event is not a start element. |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract org. Declared abstract to force redefinition by sub-classes |
| public abstract Attribute | getAttributeByName(QName
the qname of the desired attribute name)Redeclares javax. Returns the attribute referred to by the qname. |
| public abstract Iterator | getAttributes()
Redeclares javax. Returns an Iterator of non-namespace attributes declared on this START_ELEMENT. |
| public int | getEventType()
Implements abstract org. Implements javax. Returns an integer code for this event. |
| public final QName | |
| public NamespaceContext | getNamespaceContext()
Implements javax. Gets a read-only namespace context. |
| public Iterator | getNamespaces()
Implements javax. Returns an Iterator of namespaces declared on this element. |
| public String | getNamespaceURI(String
the prefix to lookup prefix)Implements javax. Gets the value that the prefix is bound to in the context of this element. |
| public int | hashCode()
Implements abstract org. Declared abstract to force redefinition by sub-classes |
| public boolean | isStartElement()
Overrides org. Implements javax. A utility function to check if this event is a StartElement. |
| protected abstract void | |
| protected abstract void | |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data w)Implements abstract org. Implements javax. This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. |
| public void | writeUsing(XMLStreamWriter2 w)
Implements abstract org. Implements org.
|
| mName | back to summary |
|---|---|
| protected final QName mName | |
| mNsCtxt | back to summary |
|---|---|
| protected final BaseNsContext mNsCtxt | |
| BaseStartElement | back to summary |
|---|---|
| protected BaseStartElement(Location loc, QName name, BaseNsContext nsCtxt) | |
| 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.
| |
| 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 abstract Attribute getAttributeByName(QName name) Redeclares javax. Doc from javax. Returns the attribute referred to by the qname. | |
| getAttributes | back to summary |
|---|---|
| public abstract Iterator Redeclares 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.
| |
| outputNsAndAttr | back to summary |
|---|---|
| protected abstract void outputNsAndAttr(Writer w) throws IOException | |
| outputNsAndAttr | back to summary |
|---|---|
| protected abstract void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException | |
| 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 w) throws XMLStreamException Implements abstract org. Implements org.
| |