org.htmlcleaner
Class DefaultTagProvider

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

public class DefaultTagProvider
extends HashMap<String,TagInfo>
implements ITagInfoProvider

This class is automatically created from ConfigFileTagProvider which reads default XML configuration file with tag descriptions. It is used as default tag info provider. Class is created for performance purposes - parsing XML file requires some processing time.

See Also:
Serialized Form

Constructor Summary
DefaultTagProvider()
           
 
Method Summary
 void addTagInfo(TagInfo tagInfo)
          Sets new tag info.
static DefaultTagProvider getInstance()
           
 TagInfo getTagInfo(String tagName)
           
 void removeTagInfo(String tagName)
          Removes tag info with specified name.
 
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
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DefaultTagProvider

public DefaultTagProvider()
Method Detail

getInstance

public static DefaultTagProvider getInstance()
Returns:
Singleton instance of this class.

getTagInfo

public TagInfo getTagInfo(String tagName)
Specified by:
getTagInfo in interface ITagInfoProvider

removeTagInfo

public void removeTagInfo(String tagName)
Removes tag info with specified name.

Parameters:
tagName - Name of the tag to be removed from the tag provider.

addTagInfo

public void addTagInfo(TagInfo tagInfo)
Sets new tag info.

Parameters:
tagInfo - tag info to be added to the provider.


Copyright © 2006-2011. All Rights Reserved.