public class HTML extends Object
HTMLDocument. These are basically tag and attribute definitions.
| Modifier and Type | Class and Description |
|---|---|
static class |
HTML
Typesafe enumeration representing an HTML attribute.
|
static class |
HTML
Typesafe enumeration for an HTML tag.
|
static class |
HTML
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_ATTRIBUTE_VALUE
|
| Constructor and Description |
|---|
HTML()
|
| Modifier and Type | Method and Description |
|---|---|
static HTML |
getAllAttributeKeys()
Returns the set of HTML attributes recognized.
|
static HTML |
getAllTags()
Returns the set of actual HTML tags that are recognized by the default HTML reader.
|
static HTML |
getAttributeKey(String
Fetches an attribute constant for a well-known attribute name (i.e.
|
static int |
getIntegerAttributeValue(AttributeSet
Fetches an integer attribute value.
|
static HTML |
getTag(String
Fetches a tag constant for a well-known tag name (i.e.
|
public static final StringNULL_ATTRIBUTE_VALUE
public static HTML.Tag [] getAllTags()
public static HTML.Tag getTag(String tagName)
null will be returned.
tagName - the
String name requested
tagName, or
null if not found
public static int getIntegerAttributeValue(AttributeSetattr, HTML .Attribute key, int def)
attr - the set of attributes to use to try to fetch a value
key - the key to use to fetch the value
def - the default value to use if the attribute isn't defined or there is an error converting to an integer
public static HTML.Attribute [] getAllAttributeKeys()
public static HTML.Attribute getAttributeKey(String attName)
null will be returned.
attName - the
String requested
Attribute corresponding to
attName