public class CompactStartElement extends BaseStartElement
StartElement
implementation used when directly creating
events from a stream reader.Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<javax.xml.stream.events.Attribute> |
mAttrList
Lazily created List that contains Attribute instances contained
in this list.
|
(package private) ElemAttrs |
mAttrs
Container object that has enough information about attributes to
be able to implement attribute accessor methods of this class.
|
(package private) java.lang.String[] |
mRawAttrs
Array needed for accessing actual String components of the attributes
|
private static int |
OFFSET_NS_PREFIX |
private static int |
OFFSET_NS_URI |
private static int |
OFFSET_VALUE |
mName, mNsCtxt
Modifier | Constructor and Description |
---|---|
protected |
CompactStartElement(javax.xml.stream.Location loc,
javax.xml.namespace.QName name,
BaseNsContext nsCtxt,
ElemAttrs attrs) |
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.events.Attribute |
constructAttr(java.lang.String[] raw,
int rawIndex,
boolean isDef) |
javax.xml.stream.events.Attribute |
getAttributeByName(javax.xml.namespace.QName name) |
java.util.Iterator<javax.xml.stream.events.Attribute> |
getAttributes() |
protected void |
outputNsAndAttr(java.io.Writer w) |
protected void |
outputNsAndAttr(javax.xml.stream.XMLStreamWriter w) |
asStartElement, equals, getEventType, getName, getNamespaceContext, getNamespaces, getNamespaceURI, hashCode, isStartElement, writeAsEncodedUnicode, writeUsing
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
private static final int OFFSET_NS_URI
private static final int OFFSET_NS_PREFIX
private static final int OFFSET_VALUE
final ElemAttrs mAttrs
final java.lang.String[] mRawAttrs
private java.util.ArrayList<javax.xml.stream.events.Attribute> mAttrList
protected CompactStartElement(javax.xml.stream.Location loc, javax.xml.namespace.QName name, BaseNsContext nsCtxt, ElemAttrs attrs)
public javax.xml.stream.events.Attribute getAttributeByName(javax.xml.namespace.QName name)
getAttributeByName
in interface javax.xml.stream.events.StartElement
getAttributeByName
in class BaseStartElement
public java.util.Iterator<javax.xml.stream.events.Attribute> getAttributes()
getAttributes
in interface javax.xml.stream.events.StartElement
getAttributes
in class BaseStartElement
protected void outputNsAndAttr(java.io.Writer w) throws java.io.IOException
outputNsAndAttr
in class BaseStartElement
java.io.IOException
protected void outputNsAndAttr(javax.xml.stream.XMLStreamWriter w) throws javax.xml.stream.XMLStreamException
outputNsAndAttr
in class BaseStartElement
javax.xml.stream.XMLStreamException
public javax.xml.stream.events.Attribute constructAttr(java.lang.String[] raw, int rawIndex, boolean isDef)