public class HtmlDocument
extends java.lang.Object
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.
HtmlVisitor
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
HtmlDocument(HtmlDocument.ElementSequence s) |
Modifier and Type | Method and Description |
---|---|
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) |
public HtmlDocument(HtmlDocument.ElementSequence s)
public void setLineSeparator(java.lang.String ls)
public void setShowBrackets(boolean b)
public boolean getShowBrackets()
public void setShowTagAttributes(boolean b)
public boolean getShowTagAttributes()
public void setShowCoreAttributes(boolean b)
public boolean getShowCoreAttributes()
public void setShowLangAttributes(boolean b)
public boolean getShowLangAttributes()
public void setShowScriptAttributes(boolean b)
public boolean getShowScriptAttributes()
public void setShowJspTags(boolean b)
public boolean getShowJspTags()
public void accept(HtmlVisitor v)