org.cyberneko.pull.event
Class TextDeclEvent

java.lang.Object
  extended byorg.cyberneko.pull.XMLEvent
      extended byorg.cyberneko.pull.event.TextDeclEvent

public class TextDeclEvent
extends XMLEvent

An XMLDecl or TextDecl event. This event is used to communicate both the XML declaration at the beginning of XML instance documents and text declarations appearing at the beginning of external parsed entities.

REVISIT: [Q] Should these be separate events? -Ac

Version:
$Id: TextDeclEvent.java,v 1.2 2003/01/28 20:00:30 andyc Exp $
Author:
Andy Clark

Field Summary
 java.lang.String encoding
          The value of the "encoding" pseudo-attribute.
 java.lang.String standalone
          The value of the "standalone" pseudo-attribute.
 java.lang.String version
          The value of the "version" pseudo-attribute.
 boolean xmldecl
          True if this event is used for XMLDecl; false if used for TextDecl.
 
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
TextDeclEvent()
          Default constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmldecl

public boolean xmldecl
True if this event is used for XMLDecl; false if used for TextDecl.


version

public java.lang.String version
The value of the "version" pseudo-attribute.


encoding

public java.lang.String encoding
The value of the "encoding" pseudo-attribute.


standalone

public java.lang.String standalone
The value of the "standalone" pseudo-attribute. This value will not be set for TextDecl events.

REVISIT: This is why I'm thinking that the XMLDecl should be separate from the TextDecl. It just seems wrong to have unused fields based on the type.

Constructor Detail

TextDeclEvent

public TextDeclEvent()
Default constructor.



(C) Copyright 2002-2004, Andy Clark. All rights reserved.