java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Content
Direct Known Subclasses:
Comment, ContentBuilder, DocType, HtmlDocument, HtmlTree, RawHtml, StringContent

@Deprecated public abstract class Content extends Object
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
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    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
    Deprecated.
    Returns true if the content is empty.
    boolean
    Deprecated.
    Returns true if the content is valid.
    protected static <T> T
    nullCheck(T t)
    Deprecated.
    Checks for null values.
    Deprecated.
    Returns a string representation of the content.
    abstract boolean
    write(Writer writer, boolean atNewline)
    Deprecated.
    Writes content to a writer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Content

      public Content()
      Deprecated.
  • Method Details

    • toString

      public String toString()
      Deprecated.
      Returns a string representation of the content.
      Overrides:
      toString in class Object
      Returns:
      string representation of the content
    • addContent

      public abstract void addContent(Content content)
      Deprecated.
      Adds content to the existing content.
      Parameters:
      content - content that needs to be added
    • addContent

      public abstract void addContent(String stringContent)
      Deprecated.
      Adds a string content to the existing content.
      Parameters:
      stringContent - the string content to be added
    • write

      public abstract boolean write(Writer writer, boolean atNewline) throws IOException
      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