org.znerd.xmlenc
Interface XMLEventListenerStates

All Known Subinterfaces:
StatefulXMLEventListener, XMLEventListener
All Known Implementing Classes:
XMLOutputter

public interface XMLEventListenerStates

All XMLEventListenerStates.

Since:
xmlenc 0.31
Version:
$Revision: 1.4 $ $Date: 2005/09/12 08:40:02 $
Author:
Ernst de Haan (wfe.dehaan@gmail.com)

Field Summary
static XMLEventListenerState AFTER_ROOT_ELEMENT
          State after the root element.
static XMLEventListenerState BEFORE_DTD_DECLARATION
          State after XML declaration but before the DTD declaration, if any.
static XMLEventListenerState BEFORE_ROOT_ELEMENT
          State after DTD declaration but before the root element.
static XMLEventListenerState BEFORE_XML_DECLARATION
          The initial initialized state.
static XMLEventListenerState DOCUMENT_ENDED
          State entered when the document is ended.
static XMLEventListenerState ERROR_STATE
          State reached when there was an error while writing output.
static XMLEventListenerState START_TAG_OPEN
          State in which a start tag is still open.
static XMLEventListenerState UNINITIALIZED
          Uninitialized state.
static XMLEventListenerState WITHIN_ELEMENT
          State within an element, start tag is closed.
 

Field Detail

UNINITIALIZED

public static final XMLEventListenerState UNINITIALIZED
Uninitialized state. In this state no events notifications are valid.


BEFORE_XML_DECLARATION

public static final XMLEventListenerState BEFORE_XML_DECLARATION
The initial initialized state. No XML declaration has been written, no DTD declaration, nothing at all.

In this state the following event notifications are valid:


BEFORE_DTD_DECLARATION

public static final XMLEventListenerState BEFORE_DTD_DECLARATION
State after XML declaration but before the DTD declaration, if any. This state is reached right after a XMLEventListener.declaration() event notification.

In this state the following event notifications are valid:


BEFORE_ROOT_ELEMENT

public static final XMLEventListenerState BEFORE_ROOT_ELEMENT
State after DTD declaration but before the root element. This state is reached right after a XMLEventListener.dtd(String,String,String) event notification.

In this state the following event notifications are valid:


START_TAG_OPEN

public static final XMLEventListenerState START_TAG_OPEN
State in which a start tag is still open. This state is entered after XMLEventListener.startTag(String) is called.

In this state the following event notifications are valid:


WITHIN_ELEMENT

public static final XMLEventListenerState WITHIN_ELEMENT
State within an element, start tag is closed.

In this state the following event notifications are valid:


AFTER_ROOT_ELEMENT

public static final XMLEventListenerState AFTER_ROOT_ELEMENT
State after the root element.

In this state the following event notifications are valid:


DOCUMENT_ENDED

public static final XMLEventListenerState DOCUMENT_ENDED
State entered when the document is ended. No more event notifications are valid.


ERROR_STATE

public static final XMLEventListenerState ERROR_STATE
State reached when there was an error while writing output. No more event notifications are valid.



See http://xmlenc.sourceforge.net/.