StartElement implementation used when directly creating
events from a stream reader.
| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | mAttrList
Lazily created List that contains Attribute instances contained in this list. |
| pack-priv final ElemAttrs | mAttrs
Container object that has enough information about attributes to be able to implement attribute accessor methods of this class. |
| pack-priv final String[] | mRawAttrs
Array needed for accessing actual String components of the attributes |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Attribute | |
| public Attribute | getAttributeByName(QName
the qname of the desired attribute name)Implements abstract com. Implements javax. Returns the attribute referred to by the qname. |
| public Iterator | getAttributes()
Implements abstract com. Implements javax. Returns an Iterator of non-namespace attributes declared on this START_ELEMENT. |
| protected void | |
| protected void | outputNsAndAttr(XMLStreamWriter w)
Implements abstract com.
|
| mAttrList | back to summary |
|---|---|
| private ArrayList<Attribute> mAttrList Lazily created List that contains Attribute instances contained in this list. Created only if there are at least 2 attributes. | |
| mAttrs | back to summary |
|---|---|
| pack-priv final ElemAttrs mAttrs Container object that has enough information about attributes to be able to implement attribute accessor methods of this class. | |
| mRawAttrs | back to summary |
|---|---|
| pack-priv final String[] mRawAttrs Array needed for accessing actual String components of the attributes | |
| OFFSET_NS_PREFIX | back to summary |
|---|---|
| private static final int OFFSET_NS_PREFIX | |
| OFFSET_NS_URI | back to summary |
|---|---|
| private static final int OFFSET_NS_URI | |
| OFFSET_VALUE | back to summary |
|---|---|
| private static final int OFFSET_VALUE | |
| CompactStartElement | back to summary |
|---|---|
| protected CompactStartElement(Location loc, QName name, BaseNsContext nsCtxt, ElemAttrs attrs) | |
| constructAttr | back to summary |
|---|---|
| protected Attribute constructAttr(String[] raw, int rawIndex, boolean isDef) | |
| getAttributeByName | back to summary |
|---|---|
| public Attribute getAttributeByName(QName name) Implements abstract com. Implements javax. Doc from javax. Returns the attribute referred to by the qname. | |
| getAttributes | back to summary |
|---|---|
| public Iterator Implements abstract com. 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
| |
| outputNsAndAttr | back to summary |
|---|---|
| protected void outputNsAndAttr(Writer w) throws IOException Implements abstract com.
| |
| outputNsAndAttr | back to summary |
|---|---|
| protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException Implements abstract com.
| |