Class TagProcessorMapping

java.lang.Object
com.itextpdf.html2pdf.util.TagProcessorMapping

public class TagProcessorMapping extends Object
Class that allows to map keys (html tags, css attributes) to the corresponding tag processors (a tag worker or a CSS applier).
  • Constructor Details

    • TagProcessorMapping

      public TagProcessorMapping()
      Creates a new TagProcessorMapping instance.
  • Method Details

    • putMapping

      public void putMapping (String tag, T mapping)
      Add a new tag to the map.
      Parameters:
      tag - the key
      mapping - the class instance that maps to the tag
    • putMapping

      public void putMapping (String tag, String display, T mapping)
      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

      public Object getMapping (String tag)
      Gets the class that maps to a specific tag.
      Parameters:
      tag - the key
      Returns:
      the class that maps to the tag
    • getMapping

      public Object getMapping (String tag, String display)
      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