Package com.inet.html.css
Class HTML
java.lang.Object
com.inet.html.css.HTML
- Direct Known Subclasses:
HTML.UnknownAttribute
Replace the class javax.swing.text.html.HTML because it is not completly
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA list of all valid HTML Attributes.static enumA list of all possible HTML tags.static classWrapper for an unknown attribute that was parsed in a CSS context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTagMapping(String tagName, HTML.Tag tag) Add a mapping to resolve unknown tags to known HTML tags.static HTML.AttributegetAttributeKey(String name) Get an Attribute constant for a known attribute.static HTML.TagGet a Tag constant for a known tag.
-
Constructor Details
-
HTML
public HTML()
-
-
Method Details
-
getTag
Get a Tag constant for a known tag. This work only for real Tags and not for synthesized Tags.- Parameters:
name- the name of the tag (case insensitive)- Returns:
- the Tag or null
-
addTagMapping
Add a mapping to resolve unknown tags to known HTML tags.- Parameters:
tagName- the name of the non-HTML tagtag- the tag to resolve to
-
getAttributeKey
Get an Attribute constant for a known attribute.- Parameters:
name- the name of the attribute (case insensitive)- Returns:
- the Tag or null
-