public class StartElementEvent extends DummyEvent implements StartElement
fLocationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
StartElementEvent(QName qname) |
StartElementEvent(StartElement startelement) |
StartElementEvent(String prefix,
String uri,
String localpart) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttributeByName(QName qname) |
Iterator |
getAttributes() |
QName |
getName() |
String |
getNamespace() |
NamespaceContext |
getNamespaceContext()
Gets a read-only namespace context.
|
Iterator |
getNamespaces() |
String |
getNamespaceURI(String prefix) |
protected void |
init() |
String |
nameAsString()
Return this event as String
|
void |
setName(QName qname) |
void |
setNamespaceContext(NamespaceContext nc) |
String |
toString()
Return a
String representation of this
StartElement formatted as XML. |
protected void |
writeAsEncodedUnicodeEx(Writer writer)
Helper method in order to expose IOException.
|
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic StartElementEvent(QName qname)
public StartElementEvent(StartElement startelement)
protected void init()
public QName getName()
getName in interface StartElementpublic void setName(QName qname)
public Iterator getAttributes()
getAttributes in interface StartElementpublic Iterator getNamespaces()
getNamespaces in interface StartElementpublic Attribute getAttributeByName(QName qname)
getAttributeByName in interface StartElementpublic String getNamespace()
public String getNamespaceURI(String prefix)
getNamespaceURI in interface StartElementpublic String toString()
Return a String representation of this
StartElement formatted as XML.
public String nameAsString()
public NamespaceContext getNamespaceContext()
getNamespaceContext in interface StartElementpublic void setNamespaceContext(NamespaceContext nc)
protected void writeAsEncodedUnicodeEx(Writer writer) throws IOException
DummyEventwriteAsEncodedUnicodeEx in class DummyEventwriter - The writer that will output the dataIOException - if there is an IO errorCopyright © 2018–2021 mhoffrogge. All rights reserved.