|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsidekick.html.parser.html.HtmlDocument
public class HtmlDocument
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.
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 |
|---|
public HtmlDocument(HtmlDocument.ElementSequence s)
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||