com.itextpdf.tool.xml.pipeline
Class WritableElement

java.lang.Object
  extended by com.itextpdf.tool.xml.pipeline.WritableElement
All Implemented Interfaces:
Writable

public class WritableElement
extends 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.

Author:
redlab_b

Constructor Summary
WritableElement()
           
WritableElement(Element e)
          Construct a WritableElement
 
Method Summary
 void add(Element e)
          Add a single element to the list of elements.
 void addAll(List<Element> l)
          add all elements to the list.
 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
 

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(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 List<Element> elements()
Returns the list of elements.

Returns:
the list of elements.


Copyright © 2012. All Rights Reserved.