public class HtmlTagProvider extends HashMap<String,TagInfo> implements ITagInfoProvider
Default HTML tag info provider. Here the basic set of HTML tags is defined, including deprecated tags and some Microsoft specific tags. Rules for tag balancing are similar to that used in most web-browsers.
Created by: Vladimir NikicAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HtmlTagProvider()
Default constructor - creates tags and rules for balancing.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependency(String tagName,
String tagList) |
protected void |
addTag(String name,
String contentType,
int belongsTo,
String dependencies)
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(String tagName)
Implementation of the interface method.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic HtmlTagProvider()
public static HtmlTagProvider getInstance()
protected void addTag(String name, String contentType, int belongsTo, String dependencies)
name - contentType - belongsTo - dependencies - protected void defineTags()
public TagInfo getTagInfo(String tagName)
getTagInfo in interface ITagInfoProvidertagName - Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.