Class Content

  • Direct Known Subclasses:
    Comment, ContentBuilder, DocType, HtmlDocument, HtmlTree, RawHtml, StringContent

    @Deprecated
    public abstract class Content
    extends java.lang.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
      Content()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      abstract void addContent​(Content content)
      Deprecated.
      Adds content to the existing content.
      abstract void addContent​(java.lang.String stringContent)
      Deprecated.
      Adds a string content to the existing content.
      int charCount()
      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.
      java.lang.String toString()
      Deprecated.
      Returns a string representation of the content.
      abstract boolean write​(java.io.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 Detail

      • Content

        public Content()
        Deprecated.
    • Method Detail

      • toString

        public java.lang.String toString()
        Deprecated.
        Returns a string representation of the content.
        Overrides:
        toString in class java.lang.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​(java.lang.String stringContent)
        Deprecated.
        Adds a string content to the existing content.
        Parameters:
        stringContent - the string content to be added
      • write

        public abstract boolean write​(java.io.Writer writer,
                                      boolean atNewline)
                               throws java.io.IOException
        Deprecated.
        Writes content to a writer.
        Throws:
        java.io.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