com.itextpdf.tool.xml.html
Class DummyTagProcessor

java.lang.Object
  extended by com.itextpdf.tool.xml.html.DummyTagProcessor
All Implemented Interfaces:
TagProcessor

public class DummyTagProcessor
extends Object
implements TagProcessor

Does nothing.

Author:
redlab_b

Constructor Summary
DummyTagProcessor()
           
 
Method Summary
 List<Element> content(WorkerContext ctx, Tag tag, String content)
          This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.
 List<Element> endElement(WorkerContext ctx, Tag tag, List<Element> currentContent)
          This method is called when a closing tag has been encountered of the TagProcessor implementation that is mapped to the tag.
 boolean isStackOwner()
           
 List<Element> startElement(WorkerContext ctx, Tag tag)
          This method is called when a tag has been encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyTagProcessor

public DummyTagProcessor()
Method Detail

startElement

public List<Element> startElement(WorkerContext ctx,
                                  Tag tag)
Description copied from interface: TagProcessor
This method is called when a tag has been encountered.

Specified by:
startElement in interface TagProcessor
Parameters:
ctx - the WorkerContext
tag - the tag encountered
Returns:
Element an Element to add to the current content;

content

public List<Element> content(WorkerContext ctx,
                             Tag tag,
                             String content)
Description copied from interface: TagProcessor
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.

Specified by:
content in interface TagProcessor
Parameters:
ctx - the WorkerContext
tag - the tag encountered
content - the text content between the tags this TagProcessor is mapped to.
Returns:
the element to add to the currentContent list

endElement

public List<Element> endElement(WorkerContext ctx,
                                Tag tag,
                                List<Element> currentContent)
Description copied from interface: TagProcessor
This method is called when a closing tag has been encountered of the TagProcessor implementation that is mapped to the tag.

Specified by:
endElement in interface TagProcessor
Parameters:
ctx - the WorkerContext
tag - the tag encountered
currentContent - a list of content possibly created by TagProcessing of inner tags, and by startElement and content methods of this TagProcessor .
Returns:
the resulting element to add to the document or a content stack.

isStackOwner

public boolean isStackOwner()
Specified by:
isStackOwner in interface TagProcessor
Returns:
true if the tag implementation must keep it's own currentContent stack.


Copyright © 2015. All Rights Reserved.