com.inet.html.css
Class HTML

java.lang.Object
  extended by com.inet.html.css.HTML

public class HTML
extends java.lang.Object

Replace the class javax.swing.text.html.HTML because it is not completly


Nested Class Summary
static class HTML.Attribute
          A list of all valid HTML Attributes.
static class HTML.Tag
          A list of all possible HTML tags.
 
Constructor Summary
HTML()
           
 
Method Summary
static void addTagMapping(java.lang.String tagName, HTML.Tag tag)
          Add a mapping to resolve unknown tags to known HTML tags.
static HTML.Attribute getAttributeKey(java.lang.String name)
          Get an Attribute constant for a known attribute.
static HTML.Tag getTag(java.lang.String name)
          Get a Tag constant for a known tag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTML

public HTML()
Method Detail

getTag

public static HTML.Tag getTag(java.lang.String name)
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

public static void addTagMapping(java.lang.String tagName,
                                 HTML.Tag tag)
Add a mapping to resolve unknown tags to known HTML tags.

Parameters:
tagName - the name of the non-HTML tag
tag - the tag to resolve to

getAttributeKey

public static HTML.Attribute getAttributeKey(java.lang.String name)
Get an Attribute constant for a known attribute.

Parameters:
name - the name of the attribute (case insensitive)
Returns:
the Tag or null