Class HtmlTree
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Content
gw.gosudoc.com.sun.tools.doclets.formats.html.markup.HtmlTree
Deprecated.
Class for generating HTML tree for javadoc output.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlTreeA(HtmlVersion htmlVersion, String attr, Content body) Deprecated.Generates an HTML anchor tag with an id or a name attribute and content.static HtmlTreeDeprecated.Generates an HTML anchor tag.static HtmlTreeDeprecated.Generates an HTML anchor tag with id attribute and a body.voidDeprecated.Adds an attribute for the HTML tag.voidaddContent(Content tagContent) Deprecated.Adds content for the HTML tag.voidaddContent(String stringContent) Deprecated.This method adds a string content to the htmltree.voidDeprecated.Adds a style for the HTML tag.static HtmlTreeDeprecated.Generates a CAPTION tag with some content.intDeprecated.Return the number of characters of plain text content in this object (optional operation.)static HtmlTreeDeprecated.Generates a CODE tag with some content.static HtmlTreeDeprecated.Generates a DD tag with some content.static HtmlTreeDeprecated.Generates a DIV tag with the style class attributes.static HtmlTreeDeprecated.Generates a DIV tag with some content.static HtmlTreeDeprecated.Generates a DL tag with some content.static HtmlTreeDeprecated.Generates a DT tag with some content.private static StringDeprecated.private static StringDeprecated.Given a string, escape all special html characters and return the result.static HtmlTreeFOOTER()Deprecated.Generates a FOOTER tag with role attribute.booleanDeprecated.Returns true if the HTML tree has a specific attribute.booleanhasAttrs()Deprecated.Returns true if the HTML tree has attributes.booleanDeprecated.Returns true if the HTML tree has content.static HtmlTreeHEADER()Deprecated.Generates a HEADER tag with role attribute.static HtmlTreeDeprecated.Generates a heading tag (h1 to h6) with the title and style class attributes.static HtmlTreeDeprecated.Generates a heading tag (h1 to h6) with the title attribute.static HtmlTreeDeprecated.Generates a heading tag (h1 to h6) with style class attribute.static HtmlTreeDeprecated.Generates a heading tag (h1 to h6) with some content.static HtmlTreeDeprecated.Generates an HTML tag with lang attribute.static HtmlTreeDeprecated.Generates a IFRAME tag.static HtmlTreeDeprecated.Generates a INPUT tag with some id.booleanisEmpty()Deprecated.Returns true if the content is empty.booleanisInline()Deprecated.Returns true if the element is an inline element.booleanisValid()Deprecated.Returns true if the HTML tree is valid.static HtmlTreeDeprecated.Generates a LI tag with some content.static HtmlTreeDeprecated.Generates a LI tag with some content.static HtmlTreeDeprecated.Generates a LINK tag with the rel, type, href and title attributes.static HtmlTreeMAIN()Deprecated.Generates a MAIN tag with role attribute.static HtmlTreeDeprecated.Generates a MAIN tag with role attribute, style attribute and some content.static HtmlTreeDeprecated.Generates a MAIN tag with role attribute and some content.static HtmlTreeDeprecated.Generates a META tag with the name and content attributes.static HtmlTreeDeprecated.Generates a META tag with the http-equiv, content and charset attributes.static HtmlTreeNAV()Deprecated.Generates a NAV tag with the role attribute.static HtmlTreeDeprecated.Generates a NOSCRIPT tag with some content.static HtmlTreeDeprecated.Generates a P tag with some content.static HtmlTreeDeprecated.Generates a P tag with some content.static HtmlTreeSCRIPT()Deprecated.Generates a SCRIPT tag with the type attribute.static HtmlTreeDeprecated.Generates a SCRIPT tag with the type and src attributes.static HtmlTreeSECTION()Deprecated.Generates a SECTION tag with role attribute.static HtmlTreeDeprecated.Generates a SECTION tag with role attribute and some content.voidsetRole(HtmlAttr.Role role) Deprecated.voidDeprecated.static HtmlTreeDeprecated.Generates a SMALL tag with some content.static HtmlTreeDeprecated.Generates a SPAN tag with style class attribute and some content.static HtmlTreeDeprecated.Generates a SPAN tag with some content.static HtmlTreeDeprecated.Generates a SPAN tag with id and style class attributes.private static StringDeprecated.Given a Content node, strips all html characters and return the result.static HtmlTreeDeprecated.Generates a Table tag with style class attribute and some content.static HtmlTreeDeprecated.Generates a Table tag with style class and summary attributes and some content.static HtmlTreeDeprecated.Generates a TD tag with style class attribute and some content.static HtmlTreeDeprecated.Generates a TD tag for an HTML table with some content.static HtmlTreeDeprecated.Generates a TH tag with style class and scope attributes and some content.static HtmlTreeDeprecated.Generates a TH tag with scope attribute and some content.static HtmlTreeDeprecated.Generates a TITLE tag with some content.static HtmlTreeDeprecated.Generates a TR tag for an HTML table with some content.static HtmlTreeDeprecated.Generates a UL tag with the style class attribute and some content.booleanDeprecated.Writes content to a writer.
-
Field Details
-
htmlTag
Deprecated. -
attrs
-
-
EMPTY
Deprecated. -
NONENCODING_CHARS
Deprecated.A set of ASCII URI characters to be left unencoded.
-
-
Constructor Details
-
HtmlTree
Deprecated.Constructor to construct HtmlTree object.- Parameters:
tag- HTML tag for the HtmlTree object
-
HtmlTree
-
-
Method Details
-
addAttr
-
setTitle
Deprecated. -
setRole
Deprecated. -
addStyle
Deprecated.Adds a style for the HTML tag.- Parameters:
style- style to be added
-
addContent
Deprecated.Adds content for the HTML tag.- Specified by:
addContentin classContent- Parameters:
tagContent- tag content to be added
-
addContent
Deprecated.This method adds a string content to the htmltree. If the last content member added is a StringContent, append the string to that StringContent or else create a new StringContent and add it to the html tree.- Specified by:
addContentin classContent- Parameters:
stringContent- string content that needs to be added
-
charCount
-
escapeHtmlChars
-
encodeURL
-
A
-
A
Deprecated.Generates an HTML anchor tag with an id or a name attribute and content.- Parameters:
htmlVersion- the version of the generated HTMLattr- name or id attribute for the anchor tagbody- content for the anchor tag- Returns:
- an HtmlTree object
-
A_ID
-
CAPTION
-
CODE
-
DD
-
DL
-
DIV
-
DIV
-
DT
-
FOOTER
Deprecated.Generates a FOOTER tag with role attribute.- Returns:
- an HtmlTree object for the FOOTER tag
-
HEADER
Deprecated.Generates a HEADER tag with role attribute.- Returns:
- an HtmlTree object for the HEADER tag
-
HEADING
public static HtmlTree HEADING(HtmlTag headingTag, boolean printTitle, HtmlStyle styleClass, Content body) Deprecated.Generates a heading tag (h1 to h6) with the title and style class attributes. It also encloses a content.- Parameters:
headingTag- the heading tag to be generatedprintTitle- true if title for the tag needs to be printed else falsestyleClass- stylesheet class for the tagbody- content for the tag- Returns:
- an HtmlTree object for the tag
-
HEADING
Deprecated.Generates a heading tag (h1 to h6) with style class attribute. It also encloses a content.- Parameters:
headingTag- the heading tag to be generatedstyleClass- stylesheet class for the tagbody- content for the tag- Returns:
- an HtmlTree object for the tag
-
HEADING
Deprecated.Generates a heading tag (h1 to h6) with the title attribute. It also encloses a content.- Parameters:
headingTag- the heading tag to be generatedprintTitle- true if the title for the tag needs to be printed else falsebody- content for the tag- Returns:
- an HtmlTree object for the tag
-
HEADING
-
HTML
Deprecated.Generates an HTML tag with lang attribute. It also adds head and body content to the HTML tree.- Parameters:
lang- language for the HTML documenthead- head for the HTML tagbody- body for the HTML tag- Returns:
- an HtmlTree object for the HTML tag
-
IFRAME
-
INPUT
-
LI
-
LI
-
LINK
Deprecated.Generates a LINK tag with the rel, type, href and title attributes.- Parameters:
rel- relevance of the linktype- type of linkhref- the path for the linktitle- title for the link- Returns:
- an HtmlTree object for the LINK tag
-
MAIN
Deprecated.Generates a MAIN tag with role attribute.- Returns:
- an HtmlTree object for the MAIN tag
-
MAIN
-
MAIN
-
META
Deprecated.Generates a META tag with the http-equiv, content and charset attributes.- Parameters:
httpEquiv- http equiv attribute for the META tagcontent- type of contentcharSet- character set used- Returns:
- an HtmlTree object for the META tag
-
META
-
NAV
Deprecated.Generates a NAV tag with the role attribute.- Returns:
- an HtmlTree object for the NAV tag
-
NOSCRIPT
-
P
-
P
-
SCRIPT
-
SCRIPT
Deprecated.Generates a SCRIPT tag with the type attribute.- Returns:
- an HtmlTree object for the SCRIPT tag
-
SECTION
Deprecated.Generates a SECTION tag with role attribute.- Returns:
- an HtmlTree object for the SECTION tag
-
SECTION
-
SMALL
-
SPAN
-
SPAN
-
SPAN
Deprecated.Generates a SPAN tag with id and style class attributes. It also encloses a content.- Parameters:
id- the id for the tagstyleClass- stylesheet class for the tagbody- content for the tag- Returns:
- an HtmlTree object for the SPAN tag
-
TABLE
Deprecated.Generates a Table tag with style class and summary attributes and some content.- Parameters:
styleClass- style of the tablesummary- summary for the tablebody- content for the table- Returns:
- an HtmlTree object for the TABLE tag
-
TABLE
-
TD
-
TD
-
TH
Deprecated.Generates a TH tag with style class and scope attributes and some content.- Parameters:
styleClass- style for the tagscope- scope of the tagbody- content for the tag- Returns:
- an HtmlTree object for the TH tag
-
TH
-
TITLE
-
TR
-
UL
-
isEmpty
-
hasContent
public boolean hasContent()Deprecated.Returns true if the HTML tree has content.- Returns:
- true if the HTML tree has content else return false
-
hasAttrs
public boolean hasAttrs()Deprecated.Returns true if the HTML tree has attributes.- Returns:
- true if the HTML tree has attributes else return false
-
hasAttr
Deprecated.Returns true if the HTML tree has a specific attribute.- Parameters:
attrName- name of the attribute to check within the HTML tree- Returns:
- true if the HTML tree has the specified attribute else return false
-
isValid
-
isInline
public boolean isInline()Deprecated.Returns true if the element is an inline element.- Returns:
- true if the HTML tag is an inline element
-
write
-
stripHtml
-