Class 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.

    Author:
    Bhavesh Patel
    • Constructor Detail

      • Content

        public Content()
        Deprecated.
    • Method Detail

      • 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