Package com.itextpdf.html2pdf.attach
Interface ITagWorker
- All Known Implementing Classes:
-
AbbrTagWorker
,ABlockTagWorker
,ATagWorker
,BodyTagWorker
,BrTagWorker
,ButtonTagWorker
,CaptionTagWorker
,ColgroupTagWorker
,ColTagWorker
,DisplayFlexTagWorker
,DisplayGridTagWorker
,DisplayTableRowTagWorker
,DisplayTableTagWorker
,DivTagWorker
,HrTagWorker
,HTagWorker
,HtmlTagWorker
,ImgTagWorker
,InputTagWorker
,LinkTagWorker
,LiTagWorker
,MetaTagWorker
,ObjectTagWorker
,OptGroupTagWorker
,OptionTagWorker
,PageCountWorker
,PageMarginBoxWorker
,PlaceholderTagWorker
,PreTagWorker
,PTagWorker
,RunningElementTagWorker
,SelectTagWorker
,SpanTagWorker
,SvgTagWorker
,TableFooterTagWorker
,TableHeaderTagWorker
,TableTagWorker
,TdTagWorker
,TextAreaTagWorker
,ThTagWorker
,TitleTagWorker
,TrTagWorker
,UlOlTagWorker
public interface ITagWorker
Interface for all the tag worker implementations.
-
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.layout.IPropertyContainer
Gets a processed object if it can be expressed as anIPropertyContainer
instance.boolean
processContent
(String content, ProcessorContext context) Placeholder for what needs to be done while the content of a tag is being processed.void
processEnd
(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context) Placeholder for what needs to be done after the content of a tag has been processed.boolean
processTagChild
(ITagWorker childTagWorker, ProcessorContext context) Placeholder for what needs to be done when a child node is being processed.
-
Method Details
-
processEnd
Placeholder for what needs to be done after the content of a tag has been processed.- Parameters:
-
element
- the element node -
context
- the processor context
-
processContent
Placeholder for what needs to be done while the content of a tag is being processed.- Parameters:
-
content
- the content of a node -
context
- the processor context - Returns:
- true, if content was successfully processed, otherwise false.
-
processTagChild
Placeholder for what needs to be done when a child node is being processed.- Parameters:
-
childTagWorker
- the tag worker of the child node -
context
- the processor context - Returns:
- true, if child was successfully processed, otherwise false.
-
getElementResult
com.itextpdf.layout.IPropertyContainer getElementResult()Gets a processed object if it can be expressed as anIPropertyContainer
instance.- Returns:
-
the same object on every call. Might return null either if result is not yet produced or if this particular tag worker doesn't produce result in a form of
IPropertyContainer
.
-