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
FieldsModifier and TypeFieldDescriptionstatic final XMLEventListenerStateState after the root element.static final XMLEventListenerStateState after XML declaration but before the DTD declaration, if any.static final XMLEventListenerStateState after DTD declaration but before the root element.static final XMLEventListenerStateThe initial initialized state.static final XMLEventListenerStateState entered when the document is ended.static final XMLEventListenerStateState reached when there was an error while writing output.static final XMLEventListenerStateState in which a start tag is still open.static final XMLEventListenerStateUninitialized state.static final XMLEventListenerStateState within an element, start tag is closed.
-
Field Details
-
UNINITIALIZED
Uninitialized state. In this state no events notifications are valid. -
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
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
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
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
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
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
State entered when the document is ended. No more event notifications are valid. -
ERROR_STATE
State reached when there was an error while writing output. No more event notifications are valid.
-