Package com.ctc.wstx.evt
Class CompactStartElement
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.BaseStartElement
com.ctc.wstx.evt.CompactStartElement
- All Implemented Interfaces:
StartElement
,XMLEvent
,XMLStreamConstants
,org.codehaus.stax2.evt.XMLEvent2
Wstx
StartElement
implementation used when directly creating
events from a stream reader.-
Field Summary
FieldsModifier and TypeFieldDescriptionLazily created List that contains Attribute instances contained in this list.(package private) final ElemAttrs
Container object that has enough information about attributes to be able to implement attribute accessor methods of this class.(package private) final String[]
Array needed for accessing actual String components of the attributesprivate static final int
private static final int
private static final int
Fields inherited from class com.ctc.wstx.evt.BaseStartElement
mName, mNsCtxt
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
Fields 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
ConstructorsModifierConstructorDescriptionprotected
CompactStartElement
(Location loc, QName name, BaseNsContext nsCtxt, ElemAttrs attrs) -
Method Summary
Modifier and TypeMethodDescriptionprotected Attribute
constructAttr
(String[] raw, int rawIndex, boolean isDef) getAttributeByName
(QName name) protected void
protected void
Methods inherited from class com.ctc.wstx.evt.BaseStartElement
asStartElement, equals, getEventType, getName, getNamespaceContext, getNamespaces, getNamespaceURI, hashCode, isStartElement, writeAsEncodedUnicode, writeUsing
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
-
Field Details
-
OFFSET_NS_URI
private static final int OFFSET_NS_URI- See Also:
-
OFFSET_NS_PREFIX
private static final int OFFSET_NS_PREFIX- See Also:
-
OFFSET_VALUE
private static final int OFFSET_VALUE- See Also:
-
mAttrs
Container object that has enough information about attributes to be able to implement attribute accessor methods of this class. -
mRawAttrs
Array needed for accessing actual String components of the attributes -
mAttrList
Lazily created List that contains Attribute instances contained in this list. Created only if there are at least 2 attributes.
-
-
Constructor Details
-
CompactStartElement
-
-
Method Details
-
getAttributeByName
- Specified by:
getAttributeByName
in interfaceStartElement
- Specified by:
getAttributeByName
in classBaseStartElement
-
getAttributes
- Specified by:
getAttributes
in interfaceStartElement
- Specified by:
getAttributes
in classBaseStartElement
-
outputNsAndAttr
- Specified by:
outputNsAndAttr
in classBaseStartElement
- Throws:
IOException
-
outputNsAndAttr
- Specified by:
outputNsAndAttr
in classBaseStartElement
- Throws:
XMLStreamException
-
constructAttr
-