Class Content
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Content
- Direct Known Subclasses:
Comment
,ContentBuilder
,DocType
,HtmlDocument
,HtmlTree
,RawHtml
,StringContent
Deprecated.
A class to create content for javadoc output pages.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addContent
(Content content) Deprecated.Adds content to the existing content.abstract void
addContent
(String stringContent) Deprecated.Adds a string content to the existing content.int
Deprecated.Return the number of characters of plain text content in this object (optional operation.)abstract boolean
isEmpty()
Deprecated.Returns true if the content is empty.boolean
isValid()
Deprecated.Returns true if the content is valid.protected static <T> T
nullCheck
(T t) Deprecated.Checks for null values.toString()
Deprecated.Returns a string representation of the content.abstract boolean
Deprecated.Writes content to a writer.
-
Constructor Details
-
Content
public Content()Deprecated.
-
-
Method Details
-
toString
Deprecated.Returns a string representation of the content. -
addContent
Deprecated.Adds content to the existing content.- Parameters:
content
- content that needs to be added
-
addContent
Deprecated.Adds a string content to the existing content.- Parameters:
stringContent
- the string content to be added
-
write
Deprecated.Writes content to a writer.- Throws:
IOException
-
isEmpty
public abstract boolean isEmpty()Deprecated.Returns true if the content is empty.- Returns:
- true if no content to be displayed else return false
-
isValid
public boolean isValid()Deprecated.Returns true if the content is valid.- Returns:
- true if the content is valid else return false
-
charCount
public int charCount()Deprecated.Return the number of characters of plain text content in this object (optional operation.)- Returns:
- the number of characters of plain text content in this
-
nullCheck
protected static <T> T nullCheck(T t) Deprecated.Checks for null values.- Parameters:
t
- reference type to check for null values- Returns:
- the reference type if not null or else throws a null pointer exception
-