Package com.itextpdf.html2pdf.util
Class TagProcessorMapping
java.lang.Object
com.itextpdf.html2pdf.util.TagProcessorMapping
Class that allows to map keys (html tags, css attributes) to the corresponding tag processors (a tag worker or a CSS applier).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMapping
(String tag) Gets the class that maps to a specific tag.getMapping
(String tag, String display) Gets the class that maps to a specific tag.void
putMapping
(String tag, String display, T mapping) Add a new tag to the map.void
putMapping
(String tag, T mapping) Add a new tag to the map.
-
Constructor Details
-
TagProcessorMapping
public TagProcessorMapping()Creates a newTagProcessorMapping
instance.
-
-
Method Details
-
putMapping
Add a new tag to the map.- Parameters:
-
tag
- the key -
mapping
- the class instance that maps to the tag
-
putMapping
Add a new tag to the map.- Parameters:
-
tag
- the key -
display
- the display value -
mapping
- the class instance that maps to the tag
-
getMapping
Gets the class that maps to a specific tag.- Parameters:
-
tag
- the key - Returns:
- the class that maps to the tag
-
getMapping
Gets the class that maps to a specific tag.- Parameters:
-
tag
- the key -
display
- the display value - Returns:
- the class that maps to the tag
-