com.lowagie.text.html

Class HtmlTagMap

public class HtmlTagMap extends HashMap

The Tags-class maps several XHTML-tags to iText-objects.
Field Summary
static longserialVersionUID
Constructor Summary
HtmlTagMap()
Constructs an HtmlTagMap.
Method Summary
booleanisBody(String tag)
Checks if this is the root tag.
booleanisHead(String tag)
Checks if this is the head tag.
booleanisHtml(String tag)
Checks if this is the root tag.
booleanisLink(String tag)
Checks if this is the linl tag.
booleanisMeta(String tag)
Checks if this is the meta tag.
booleanisSpecialTag(String tag)
Checks if this is a special tag.
booleanisTitle(String tag)
Checks if this is the title tag.

Field Detail

serialVersionUID

private static final long serialVersionUID

Constructor Detail

HtmlTagMap

public HtmlTagMap()
Constructs an HtmlTagMap.

Method Detail

isBody

public boolean isBody(String tag)
Checks if this is the root tag.

Parameters: tag a tagvalue

Returns: true if tag is BODY or body

isHead

public boolean isHead(String tag)
Checks if this is the head tag.

Parameters: tag a tagvalue

Returns: true if tag is HEAD or head

isHtml

public boolean isHtml(String tag)
Checks if this is the root tag.

Parameters: tag a tagvalue

Returns: true if tag is HTML or html

isLink

public boolean isLink(String tag)
Checks if this is the linl tag.

Parameters: tag a tagvalue

Returns: true if tag is LINK or link

isMeta

public boolean isMeta(String tag)
Checks if this is the meta tag.

Parameters: tag a tagvalue

Returns: true if tag is META or meta

isSpecialTag

public 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)

isTitle

public boolean isTitle(String tag)
Checks if this is the title tag.

Parameters: tag a tagvalue

Returns: true if tag is TITLE or title