Package com.itextpdf.tool.xml.html
Class DummyTagProcessor
java.lang.Object
com.itextpdf.tool.xml.html.DummyTagProcessor
- All Implemented Interfaces:
TagProcessor
Does nothing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent
(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.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
startElement
(WorkerContext ctx, Tag tag) This method is called when a tag has been encountered.
-
Constructor Details
-
DummyTagProcessor
public DummyTagProcessor()
-
-
Method Details
-
startElement
Description copied from interface:TagProcessor
This method is called when a tag has been encountered.- Specified by:
startElement
in interfaceTagProcessor
- Parameters:
ctx
- the WorkerContexttag
- the tag encountered- Returns:
- Element an Element to add to the current content;
-
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 interfaceTagProcessor
- Parameters:
ctx
- the WorkerContexttag
- the tag encounteredcontent
- the text content between the tags this TagProcessor is mapped to.- Returns:
- the element to add to the currentContent list
-
endElement
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 interfaceTagProcessor
- Parameters:
ctx
- the WorkerContexttag
- the tag encounteredcurrentContent
- a list of content possibly created by TagProcessing of inner tags, and bystartElement
andcontent
methods of thisTagProcessor
.- Returns:
- the resulting element to add to the document or a content stack.
-
isStackOwner
public boolean isStackOwner()- Specified by:
isStackOwner
in interfaceTagProcessor
- Returns:
- true if the tag implementation must keep it's own currentContent stack.
-