xml.parser.javacc
Class XmlDocument

java.lang.Object
  extended by xml.parser.javacc.XmlDocument

public class XmlDocument
extends java.lang.Object

Represents an XML document as a sequence of elements. The defined element types are: Tag, EndTag, TagBlock (matched tag..end tag, with the intervening elements), Comment, Text, Newline, and Annotation.

The various element types are defined as nested classes within XmlDocument.

danson: Modified for Beauty plugin for jEdit, added ability to handle jsp, configuration settings, and so on.

Author:
Brian Goetz, Quiotix
See Also:
sidekick.html.parser.html.XmlVisitor

Nested Class Summary
static class XmlDocument.Annotation
          Annotations.
static class XmlDocument.Attribute
           
static class XmlDocument.AttributeList
           
static class XmlDocument.Comment
          HTML comments.
static class XmlDocument.ElementSequence
          A sequence of HTML elements.
static class XmlDocument.EndTag
          Html end tag.
static class XmlDocument.Newline
          End of line indicator.
static class XmlDocument.Tag
          XML start tag.
static class XmlDocument.TagBlock
          A tag block is a composite structure consisting of a start tag a sequence of HTML elements, and a matching end tag.
static class XmlDocument.Text
          Plain text.
static class XmlDocument.XmlElement
          Abstract class for HTML elements.
 
Constructor Summary
XmlDocument(XmlDocument.ElementSequence s)
           
 
Method Summary
 void accept(XmlVisitor v)
           
 void setLineSeparator(java.lang.String ls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDocument

public XmlDocument(XmlDocument.ElementSequence s)
Method Detail

setLineSeparator

public void setLineSeparator(java.lang.String ls)

accept

public void accept(XmlVisitor v)