Package org.htmlcleaner
Class Html5TagProvider
- java.lang.Object
-
- org.htmlcleaner.Html5TagProvider
-
- All Implemented Interfaces:
ITagInfoProvider
public class Html5TagProvider extends java.lang.Object implements ITagInfoProvider
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCLOSE_BEFORE_COPY_INSIDE_TAGSprivate static java.lang.StringCLOSE_BEFORE_TAGSprivate static java.lang.StringFLOW_TAGSMost elements that are used in the body of documents and applications are categorized as flow content.static Html5TagProviderINSTANCEMathMLTagProviderINSTANCE2private static java.lang.StringMEDIA_TAGSHTML5 Media Tagsprivate static java.lang.StringPHRASING_TAGSPhrasing tags are those that can make up paragraphs along with text to make Phrasing Content.private static java.lang.StringSCRIPT_SUPPORTING_TAGSprivate static java.lang.StringSTRONGprivate java.util.concurrent.ConcurrentMap<java.lang.String,TagInfo>tagInfoMap
-
Constructor Summary
Constructors Constructor Description Html5TagProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditTags(TagInfo tagInfo)The HTML5 edits tags (2 total)voidembeddedContentTags(TagInfo tagInfo)voidformTags(TagInfo tagInfo)The HTML5 forms tags (15 total)TagInfogetTagInfo(java.lang.String tagName)It returns the tag information.voidgroupingTags(TagInfo tagInfo)The HTML5 grouping tags (14 total)voidinteractiveTags(TagInfo tagInfo)The HTML5 Interactive tags (4 total)voidmediaTags(TagInfo tagInfo)Html5 media-embedded tags (12 tags)voidmetadataTags(TagInfo tagInfo)HTML5 Document metadata tagsvoidphrasingTags(TagInfo tagInfo)Html5 phrasing tags --text level semantics (31 total) thelw dataprotected voidput(java.lang.String tagName, TagInfo tagInfo)It inserts the tag node into the tagInfoMap.voidscriptingTags(TagInfo tagInfo)HTML5 scripting tagsvoidsemanticFlowTags(TagInfo tagInfo)The HTML5 semantic flow tags-Sectioning tags (15 total)voidtableTags(TagInfo tagInfo)The HTML5 table tags (12 total)
-
-
-
Field Detail
-
STRONG
private static final java.lang.String STRONG
- See Also:
- Constant Field Values
-
tagInfoMap
private java.util.concurrent.ConcurrentMap<java.lang.String,TagInfo> tagInfoMap
-
INSTANCE
public static final Html5TagProvider INSTANCE
-
INSTANCE2
public MathMLTagProvider INSTANCE2
-
CLOSE_BEFORE_COPY_INSIDE_TAGS
private static final java.lang.String CLOSE_BEFORE_COPY_INSIDE_TAGS
- See Also:
- Constant Field Values
-
CLOSE_BEFORE_TAGS
private static final java.lang.String CLOSE_BEFORE_TAGS
- See Also:
- Constant Field Values
-
PHRASING_TAGS
private static final java.lang.String PHRASING_TAGS
Phrasing tags are those that can make up paragraphs along with text to make Phrasing Content. Generally speaking, phrasing content only allows phrasing content as child tags.- See Also:
- Constant Field Values
-
FLOW_TAGS
private static final java.lang.String FLOW_TAGS
Most elements that are used in the body of documents and applications are categorized as flow content.- See Also:
- Constant Field Values
-
MEDIA_TAGS
private static final java.lang.String MEDIA_TAGS
HTML5 Media Tags- See Also:
- Constant Field Values
-
SCRIPT_SUPPORTING_TAGS
private static final java.lang.String SCRIPT_SUPPORTING_TAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
embeddedContentTags
public void embeddedContentTags(TagInfo tagInfo)
-
semanticFlowTags
public void semanticFlowTags(TagInfo tagInfo)
The HTML5 semantic flow tags-Sectioning tags (15 total)
-
interactiveTags
public void interactiveTags(TagInfo tagInfo)
The HTML5 Interactive tags (4 total)
-
groupingTags
public void groupingTags(TagInfo tagInfo)
The HTML5 grouping tags (14 total)
-
phrasingTags
public void phrasingTags(TagInfo tagInfo)
Html5 phrasing tags --text level semantics (31 total) thelw data
-
mediaTags
public void mediaTags(TagInfo tagInfo)
Html5 media-embedded tags (12 tags)
-
editTags
public void editTags(TagInfo tagInfo)
The HTML5 edits tags (2 total)
-
tableTags
public void tableTags(TagInfo tagInfo)
The HTML5 table tags (12 total)
-
formTags
public void formTags(TagInfo tagInfo)
The HTML5 forms tags (15 total)
-
metadataTags
public void metadataTags(TagInfo tagInfo)
HTML5 Document metadata tags
-
scriptingTags
public void scriptingTags(TagInfo tagInfo)
HTML5 scripting tags
-
put
protected void put(java.lang.String tagName, TagInfo tagInfo)It inserts the tag node into the tagInfoMap.- Parameters:
tagName- The name of the tagtagInfo- The info about tag node
-
getTagInfo
public TagInfo getTagInfo(java.lang.String tagName)
It returns the tag information.- Specified by:
getTagInfoin interfaceITagInfoProvider- Parameters:
tagName- The name of the tag to return- Returns:
- TagInfo The information about tag node
-
-