Class WritableElement

  • All Implemented Interfaces:
    Writable

    public class WritableElement
    extends java.lang.Object
    implements Writable
    A WritableElement holds all elements that need to be added to a Document. It's used at least in the HTML processing of the XMLWorker.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<Element> list  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Element e)
      Add a single element to the list of elements.
      void addAll​(java.util.List<Element> l)
      add all elements to the list.
      java.util.List<Element> elements()
      Returns the list of elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • list

        private final java.util.ArrayList<Element> list
    • Constructor Detail

      • WritableElement

        public WritableElement()
      • WritableElement

        public WritableElement​(Element e)
        Construct a WritableElement
        Parameters:
        e - an element to add to the list of elements.
    • Method Detail

      • add

        public void add​(Element e)
        Add a single element to the list of elements.
        Parameters:
        e - an Element
      • addAll

        public void addAll​(java.util.List<Element> l)
        add all elements to the list. (Note do not submit 1 com.itextpdf.text.Paragraph this extends from ArrayList, and just the Content will be added....)
        Parameters:
        l - the list to add.
      • elements

        public java.util.List<Element> elements()
        Returns the list of elements.
        Returns:
        the list of elements.