org.htmlcleaner
Class HtmlTagProvider

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.htmlcleaner.HtmlTagProvider
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, ITagInfoProvider

public class HtmlTagProvider
extends java.util.HashMap
implements ITagInfoProvider

Default HTML tag info provider. Here the basic set of HTML tags is defined, including depricated tags and some Microsoft specific tags. Rules for tag balancing are similar to that used in most web-browsers.

Created by: Vladimir Nikic
Date: November, 2006.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
HtmlTagProvider()
          Default constructor - creates tags and rules for balancing.
 
Method Summary
static HtmlTagProvider getInstance()
          Returns singleton instance of this class.
 TagInfo getTagInfo(java.lang.String tagName)
          Implementation of the interface method.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

HtmlTagProvider

public HtmlTagProvider()
Default constructor - creates tags and rules for balancing.

Method Detail

getInstance

public static HtmlTagProvider getInstance()
Returns singleton instance of this class.


getTagInfo

public TagInfo getTagInfo(java.lang.String tagName)
Implementation of the interface method.

Specified by:
getTagInfo in interface ITagInfoProvider
Parameters:
tagName -
Returns:
TagInfo instance from the map, for the specified tag name.