sidekick.html.parser.html
Class HtmlDocument

java.lang.Object
  extended by sidekick.html.parser.html.HtmlDocument

public class HtmlDocument
extends java.lang.Object

Represents an HTML 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 HtmlDocument.

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

Author:
Brian Goetz, Quiotix
See Also:
HtmlVisitor

Nested Class Summary
static class HtmlDocument.Annotation
          Annotations.
static class HtmlDocument.Attribute
           
static class HtmlDocument.AttributeList
           
static class HtmlDocument.Comment
          HTML comments.
static class HtmlDocument.ElementSequence
          A sequence of HTML elements.
static class HtmlDocument.EndTag
          Html end tag.
static class HtmlDocument.HtmlElement
          Abstract class for HTML elements.
static class HtmlDocument.JspComment
          JSP comments.
static class HtmlDocument.Newline
          End of line indicator.
static class HtmlDocument.Tag
          HTML start tag.
static class HtmlDocument.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 HtmlDocument.Text
          Plain text.
 
Constructor Summary
HtmlDocument(HtmlDocument.ElementSequence s)
           
 
Method Summary
 void accept(HtmlVisitor v)
           
 boolean getShowBrackets()
           
 boolean getShowCoreAttributes()
           
 boolean getShowJspTags()
           
 boolean getShowLangAttributes()
           
 boolean getShowScriptAttributes()
           
 boolean getShowTagAttributes()
           
 void setLineSeparator(java.lang.String ls)
           
 void setShowBrackets(boolean b)
          Should the brackets, < and > be shown on the output of the toString methods of the individual elements?
 void setShowCoreAttributes(boolean b)
           
 void setShowJspTags(boolean b)
           
 void setShowLangAttributes(boolean b)
           
 void setShowScriptAttributes(boolean b)
           
 void setShowTagAttributes(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDocument

public HtmlDocument(HtmlDocument.ElementSequence s)
Method Detail

setLineSeparator

public void setLineSeparator(java.lang.String ls)

setShowBrackets

public void setShowBrackets(boolean b)
Should the brackets, < and > be shown on the output of the toString methods of the individual elements?


getShowBrackets

public boolean getShowBrackets()

setShowTagAttributes

public void setShowTagAttributes(boolean b)

getShowTagAttributes

public boolean getShowTagAttributes()

setShowCoreAttributes

public void setShowCoreAttributes(boolean b)

getShowCoreAttributes

public boolean getShowCoreAttributes()

setShowLangAttributes

public void setShowLangAttributes(boolean b)

getShowLangAttributes

public boolean getShowLangAttributes()

setShowScriptAttributes

public void setShowScriptAttributes(boolean b)

getShowScriptAttributes

public boolean getShowScriptAttributes()

setShowJspTags

public void setShowJspTags(boolean b)

getShowJspTags

public boolean getShowJspTags()

accept

public void accept(HtmlVisitor v)