com.itextpdf.tool.xml.pipeline.html
Class StackKeeper

java.lang.Object
  extended by com.itextpdf.tool.xml.pipeline.html.StackKeeper

public class StackKeeper
extends Object

Simple wrapper of a List to put Elements in that are created by inner tags of the given Tag.

Author:
redlab_b

Constructor Summary
StackKeeper(Tag t)
           
 
Method Summary
 void add(Collection<? extends Element> elements)
          Add all given elements to the stack, according to the natural order.
 void add(Element content)
          Add an element to this keepers stack.
 List<Element> getElements()
           
 Tag getTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackKeeper

public StackKeeper(Tag t)
Parameters:
t - the tag
Method Detail

add

public void add(Element content)
Add an element to this keepers stack.

Parameters:
content - the element to add

getElements

public List<Element> getElements()
Returns:
the elements in this stack

add

public void add(Collection<? extends Element> elements)
Add all given elements to the stack, according to the natural order.

Parameters:
elements - collection of Element

getTag

public Tag getTag()
Returns:
the tag


Copyright © 2012. All Rights Reserved.