Class HtmlTagMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,HtmlPeer>

public class HtmlTagMap extends HashMap<String,HtmlPeer>
The Tags-class maps several XHTML-tags to iText-objects.
See Also:
  • Field Details

  • Constructor Details

    • HtmlTagMap

      public HtmlTagMap()
      Constructs an HtmlTagMap.
  • Method Details

    • isHtml

      public static boolean isHtml(String tag)
      Checks if this is the root tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is HTML or html
    • isHead

      public static boolean isHead(String tag)
      Checks if this is the head tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is HEAD or head
    • isMeta

      public static boolean isMeta(String tag)
      Checks if this is the meta tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is META or meta
    • isLink

      public static boolean isLink(String tag)
      Checks if this is the link tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is LINK or link
    • isTitle

      public static boolean isTitle(String tag)
      Checks if this is the title tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is TITLE or title
    • isBody

      public static boolean isBody(String tag)
      Checks if this is the root tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is BODY or body
    • isSpecialTag

      public static boolean isSpecialTag(String tag)
      Checks if this is a special tag.
      Parameters:
      tag - a tagvalue
      Returns:
      true if tag is a HTML, HEAD, META, LINK or BODY tag (case insensitive)