public class SimpleStartElement
extends org.codehaus.stax2.ri.evt.BaseEventImpl
StartElement
implementation used when event is constructed
from already objectified data, for example when constructed by the event
factory.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 |
SimpleStartElement(Location loc,
QName name,
BaseNsContext nsCtxt,
Map<QName,Attribute> attr) |
Modifier and Type | Method and Description |
---|---|
StartElement |
asStartElement() |
static SimpleStartElement |
construct(Location loc,
QName name,
Iterator<Attribute> attrs,
Iterator<Namespace> ns,
NamespaceContext nsCtxt) |
static SimpleStartElement |
construct(Location loc,
QName name,
Map<QName,Attribute> attrs,
List<Namespace> ns,
NamespaceContext nsCtxt)
Factory method called when a start element needs to be constructed
from an external source (most likely, non-woodstox stream reader).
|
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
protected final QName mName
protected final BaseNsContext mNsCtxt
public static SimpleStartElement construct(Location loc, QName name, Map<QName,Attribute> attrs, List<Namespace> ns, NamespaceContext nsCtxt)
public static SimpleStartElement construct(Location loc, QName name, Iterator<Attribute> attrs, Iterator<Namespace> ns, NamespaceContext nsCtxt)
public Attribute getAttributeByName(QName name)
getAttributeByName
in interface StartElement
public Iterator<Attribute> getAttributes()
getAttributes
in interface StartElement
protected void outputNsAndAttr(Writer w) throws IOException
IOException
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
public final QName getName()
getName
in interface StartElement
public Iterator<Namespace> getNamespaces()
getNamespaces
in interface StartElement
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface StartElement
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface StartElement
public StartElement asStartElement()
asStartElement
in interface XMLEvent
asStartElement
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public int getEventType()
getEventType
in interface XMLEvent
getEventType
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public boolean isStartElement()
isStartElement
in interface XMLEvent
isStartElement
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode
in interface XMLEvent
writeAsEncodedUnicode
in class org.codehaus.stax2.ri.evt.BaseEventImpl
XMLStreamException
public void writeUsing(org.codehaus.stax2.XMLStreamWriter2 w) throws XMLStreamException
writeUsing
in interface org.codehaus.stax2.evt.XMLEvent2
writeUsing
in class org.codehaus.stax2.ri.evt.BaseEventImpl
XMLStreamException
public boolean equals(Object o)
equals
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public int hashCode()
hashCode
in class org.codehaus.stax2.ri.evt.BaseEventImpl
Copyright © 2018 FasterXML. All rights reserved.