Package com.lowagie.text.html
Class HtmlTagMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
HtmlPeer>
The
Tags
-class maps several XHTML-tags to iText-objects.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if this is the root tag.static boolean
Checks if this is the head tag.static boolean
Checks if this is the root tag.static boolean
Checks if this is the link tag.static boolean
Checks if this is the meta tag.static boolean
isSpecialTag
(String tag) Checks if this is a special tag.static boolean
Checks if this is the title tag.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
HtmlTagMap
public HtmlTagMap()Constructs an HtmlTagMap.
-
-
Method Details
-
isHtml
Checks if this is the root tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is HTML or html
-
isHead
Checks if this is the head tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is HEAD or head
-
isMeta
Checks if this is the meta tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is META or meta
-
isLink
Checks if this is the link tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is LINK or link
-
isTitle
Checks if this is the title tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is TITLE or title
-
isBody
Checks if this is the root tag.- Parameters:
tag
- a tagvalue- Returns:
- true if tag is BODY or body
-
isSpecialTag
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)
-