|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
info.bliki.htmlcleaner.HtmlTagProvider
public class HtmlTagProvider
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
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 | |
---|---|
protected void |
addDependancy(java.lang.String tagName,
java.lang.String tagList)
|
protected void |
addTag(java.lang.String name,
java.lang.String contentType,
int belongsTo,
java.lang.String dependancies)
Shortcut to creating TagInfo instance and storing it to the map. |
protected void |
defineTags()
Definition of all HTML tags together with rules for tag balancing. |
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 |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public HtmlTagProvider()
Method Detail |
---|
public static HtmlTagProvider getInstance()
protected void addTag(java.lang.String name, java.lang.String contentType, int belongsTo, java.lang.String dependancies)
name
- contentType
- belongsTo
- dependancies
- protected void defineTags()
protected void addDependancy(java.lang.String tagName, java.lang.String tagList)
public TagInfo getTagInfo(java.lang.String tagName)
getTagInfo
in interface ITagInfoProvider
tagName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |