Package org.znerd.xmlenc
Interface XMLEventListenerStates
-
- All Known Subinterfaces:
StatefulXMLEventListener,XMLEventListener
- All Known Implementing Classes:
XMLOutputter
public interface XMLEventListenerStatesAllXMLEventListenerStates.- 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
Fields Modifier and Type Field Description static XMLEventListenerStateAFTER_ROOT_ELEMENTState after the root element.static XMLEventListenerStateBEFORE_DTD_DECLARATIONState after XML declaration but before the DTD declaration, if any.static XMLEventListenerStateBEFORE_ROOT_ELEMENTState after DTD declaration but before the root element.static XMLEventListenerStateBEFORE_XML_DECLARATIONThe initial initialized state.static XMLEventListenerStateDOCUMENT_ENDEDState entered when the document is ended.static XMLEventListenerStateERROR_STATEState reached when there was an error while writing output.static XMLEventListenerStateSTART_TAG_OPENState in which a start tag is still open.static XMLEventListenerStateUNINITIALIZEDUninitialized state.static XMLEventListenerStateWITHIN_ELEMENTState within an element, start tag is closed.
-
-
-
Field Detail
-
UNINITIALIZED
static final XMLEventListenerState UNINITIALIZED
Uninitialized state. In this state no events notifications are valid.
-
BEFORE_XML_DECLARATION
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:- XML declaration (
XMLEventListener.declaration()) - DTD declaration (
XMLEventListener.dtd(String,String,String)) - white space (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String)) - start tag (
XMLEventListener.startTag(String))
- XML declaration (
-
BEFORE_DTD_DECLARATION
static final XMLEventListenerState BEFORE_DTD_DECLARATION
State after XML declaration but before the DTD declaration, if any. This state is reached right after aXMLEventListener.declaration()event notification. In this state the following event notifications are valid:- DTD declaration (
XMLEventListener.dtd(String,String,String)) - white space (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String)) - start tag (
XMLEventListener.startTag(String))
- DTD declaration (
-
BEFORE_ROOT_ELEMENT
static final XMLEventListenerState BEFORE_ROOT_ELEMENT
State after DTD declaration but before the root element. This state is reached right after aXMLEventListener.dtd(String,String,String)event notification. In this state the following event notifications are valid:- white space (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String)) - start tag (
XMLEventListener.startTag(String))
- white space (
-
START_TAG_OPEN
static final XMLEventListenerState START_TAG_OPEN
State in which a start tag is still open. This state is entered afterXMLEventListener.startTag(String)is called. In this state the following event notifications are valid:- white space (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String)) - attribute (
XMLEventListener.attribute(String,String)) - another start tag (
XMLEventListener.startTag(String)) - end tag (
XMLEventListener.endTag())
- white space (
-
WITHIN_ELEMENT
static final XMLEventListenerState WITHIN_ELEMENT
State within an element, start tag is closed. In this state the following event notifications are valid:- white space (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String)) - start tag (
XMLEventListener.startTag(String)) - end tag (
XMLEventListener.endTag())
- white space (
-
AFTER_ROOT_ELEMENT
static final XMLEventListenerState AFTER_ROOT_ELEMENT
State after the root element. In this state the following event notifications are valid:- whitespace (
XMLEventListener.whitespace(String)) - comment (
XMLEventListener.comment(String)) - processing instruction (
XMLEventListener.pi(String,String))
- whitespace (
-
DOCUMENT_ENDED
static final XMLEventListenerState DOCUMENT_ENDED
State entered when the document is ended. No more event notifications are valid.
-
ERROR_STATE
static final XMLEventListenerState ERROR_STATE
State reached when there was an error while writing output. No more event notifications are valid.
-
-