Class ContentBuilder


  • @Deprecated
    public class ContentBuilder
    extends Content
    Deprecated.
    A sequence of Content nodes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Content> contents
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentBuilder()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addContent​(Content content)
      Deprecated.
      Adds content to the existing content.
      void addContent​(java.lang.String text)
      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.)
      private void ensureMutableContents()
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
      Returns true if the content is empty.
      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
    • Field Detail

      • contents

        protected java.util.List<Content> contents
        Deprecated.
    • Constructor Detail

      • ContentBuilder

        public ContentBuilder()
        Deprecated.
    • Method Detail

      • addContent

        public void addContent​(Content content)
        Deprecated.
        Description copied from class: Content
        Adds content to the existing content.
        Specified by:
        addContent in class Content
        Parameters:
        content - content that needs to be added
      • addContent

        public void addContent​(java.lang.String text)
        Deprecated.
        Description copied from class: Content
        Adds a string content to the existing content.
        Specified by:
        addContent in class Content
        Parameters:
        text - the string content to be added
      • write

        public boolean write​(java.io.Writer writer,
                             boolean atNewline)
                      throws java.io.IOException
        Deprecated.
        Description copied from class: Content
        Writes content to a writer.
        Specified by:
        write in class Content
        Throws:
        java.io.IOException
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Description copied from class: Content
        Returns true if the content is empty.
        Specified by:
        isEmpty in class Content
        Returns:
        true if no content to be displayed else return false
      • charCount

        public int charCount()
        Deprecated.
        Description copied from class: Content
        Return the number of characters of plain text content in this object (optional operation.)
        Overrides:
        charCount in class Content
        Returns:
        the number of characters of plain text content in this
      • ensureMutableContents

        private void ensureMutableContents()
        Deprecated.