org.htmlcleaner
Class DefaultTagProvider
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,TagInfo>
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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
DefaultTagProvider
public DefaultTagProvider()
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.