public class CompactStartElement
extends org.codehaus.stax2.ri.evt.BaseEventImpl
StartElement implementation used when directly creating
events from a stream reader.| Modifier and Type | Field and Description |
|---|---|
protected QName |
mName |
protected BaseNsContext |
mNsCtxt |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier | Constructor and Description |
|---|---|
protected |
CompactStartElement(Location loc,
QName name,
BaseNsContext nsCtxt,
ElemAttrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
StartElement |
asStartElement() |
protected Attribute |
constructAttr(String[] raw,
int rawIndex,
boolean isDef) |
boolean |
equals(Object o) |
Attribute |
getAttributeByName(QName name) |
Iterator<Attribute> |
getAttributes() |
int |
getEventType() |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
Iterator<Namespace> |
getNamespaces() |
String |
getNamespaceURI(String prefix) |
int |
hashCode() |
boolean |
isStartElement() |
protected void |
outputNsAndAttr(Writer w) |
protected void |
outputNsAndAttr(XMLStreamWriter w) |
void |
writeAsEncodedUnicode(Writer w) |
void |
writeUsing(org.codehaus.stax2.XMLStreamWriter2 w) |
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocumentprotected final QName mName
protected final BaseNsContext mNsCtxt
protected CompactStartElement(Location loc, QName name, BaseNsContext nsCtxt, ElemAttrs attrs)
public Attribute getAttributeByName(QName name)
getAttributeByName in interface StartElementpublic Iterator<Attribute> getAttributes()
getAttributes in interface StartElementprotected void outputNsAndAttr(Writer w) throws IOException
IOExceptionprotected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException
XMLStreamExceptionpublic final QName getName()
getName in interface StartElementpublic Iterator<Namespace> getNamespaces()
getNamespaces in interface StartElementpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface StartElementpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface StartElementpublic StartElement asStartElement()
asStartElement in interface XMLEventasStartElement in class org.codehaus.stax2.ri.evt.BaseEventImplpublic int getEventType()
getEventType in interface XMLEventgetEventType in class org.codehaus.stax2.ri.evt.BaseEventImplpublic boolean isStartElement()
isStartElement in interface XMLEventisStartElement in class org.codehaus.stax2.ri.evt.BaseEventImplpublic void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode in interface XMLEventwriteAsEncodedUnicode in class org.codehaus.stax2.ri.evt.BaseEventImplXMLStreamExceptionpublic void writeUsing(org.codehaus.stax2.XMLStreamWriter2 w)
throws XMLStreamException
writeUsing in interface org.codehaus.stax2.evt.XMLEvent2writeUsing in class org.codehaus.stax2.ri.evt.BaseEventImplXMLStreamExceptionpublic boolean equals(Object o)
equals in class org.codehaus.stax2.ri.evt.BaseEventImplpublic int hashCode()
hashCode in class org.codehaus.stax2.ri.evt.BaseEventImplCopyright © 2023 FasterXML. All rights reserved.