|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.cyberneko.pull.XMLEvent
org.cyberneko.pull.event.BoundedEvent
org.cyberneko.pull.event.ElementEvent
An element event. This event communicates both the start element and end element events. In addition, this event allows the application to query whether the element tag represented by this event was empty. In other words, whether the tag appears as "<root></root>" or "<root/>".
| Field Summary | |
org.apache.xerces.xni.XMLAttributes |
attributes
The attributes for the start element. |
org.apache.xerces.xni.QName |
element
The qualified name of the element. |
boolean |
empty
True if this element is an empty element, for example <root/>. |
| Fields inherited from class org.cyberneko.pull.event.BoundedEvent |
start |
| Fields inherited from class org.cyberneko.pull.XMLEvent |
augs, CDATA, CHARACTERS, COMMENT, DOCTYPE_DECL, DOCUMENT, ELEMENT, GENERAL_ENTITY, next, PREFIX_MAPPING, PROCESSING_INSTRUCTION, TEXT_DECL, type |
| Constructor Summary | |
ElementEvent()
Default constructor. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public org.apache.xerces.xni.QName element
public org.apache.xerces.xni.XMLAttributes attributes
public boolean empty
Note:
The pull parser will always report both a start and end element event
for empty elements. This allows applications to deal with elements in
a consistent manner. However, both the start and end element event
objects of an empty element will have the empty field
set to true.
| Constructor Detail |
public ElementEvent()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||