public final class HTMLdtd extends Object
isEmptyTag(java.lang.String)
) or on parsing (isOptionalClosing(java.lang.String)
).
Two other methods translate character references from name to value and from value to name. A small entities resource is loaded into memory the first time any of these methods is called for fast and efficient access.
Modifier and Type | Field and Description |
---|---|
static String |
HTMLPublicId
Deprecated.
Public identifier for HTML 4.01 (Strict) document type.
|
static String |
HTMLSystemId
Deprecated.
System identifier for HTML 4.01 (Strict) document type.
|
static String |
XHTMLPublicId
Deprecated.
Public identifier for XHTML 1.0 (Strict) document type.
|
static String |
XHTMLSystemId
Deprecated.
System identifier for XHTML 1.0 (Strict) document type.
|
Constructor and Description |
---|
HTMLdtd()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static int |
charFromName(String name)
Deprecated.
Returns the value of an HTML character reference by its name.
|
static String |
fromChar(int value)
Deprecated.
Returns the name of an HTML character reference based on its character
value.
|
static boolean |
isBoolean(String tagName,
String attrName)
Deprecated.
Returns true if the specified attribute is a boolean and should be
printed without the value.
|
static boolean |
isClosing(String tagName,
String openTag)
Deprecated.
Returns true if the opening of one element (tagName) implies
the closing of another open element (openTag).
|
static boolean |
isElementContent(String tagName)
Deprecated.
Returns true if element is declared to have element content.
|
static boolean |
isEmptyTag(String tagName)
Deprecated.
Returns true if element is declared to be empty.
|
static boolean |
isOnlyOpening(String tagName)
Deprecated.
Returns true if element's closing tag is generally not printed.
|
static boolean |
isOptionalClosing(String tagName)
Deprecated.
Returns true if element's closing tag is optional and need not
exist.
|
static boolean |
isPreserveSpace(String tagName)
Deprecated.
Returns true if element's textual contents preserves spaces.
|
static boolean |
isURI(String tagName,
String attrName)
Deprecated.
Returns true if the specified attribute it a URI and should be
escaped appropriately.
|
public static final String HTMLPublicId
public static final String HTMLSystemId
public static final String XHTMLPublicId
public static final String XHTMLSystemId
public static boolean isEmptyTag(String tagName)
tagName
- The element tag name (upper case)public static boolean isElementContent(String tagName)
tagName
- The element tag name (upper case)public static boolean isPreserveSpace(String tagName)
tagName
- The element tag name (upper case)public static boolean isOptionalClosing(String tagName)
tagName
- The element tag name (upper case)public static boolean isOnlyOpening(String tagName)
tagName
- The element tag name (upper case)public static boolean isClosing(String tagName, String openTag)
tagName
- The newly opened elementopenTag
- The already opened elementpublic static boolean isURI(String tagName, String attrName)
tagName
- The element's tag nameattrName
- The attribute's namepublic static boolean isBoolean(String tagName, String attrName)
tagName
- The element's tag nameattrName
- The attribute's namepublic static int charFromName(String name)
name
- Name of character referencepublic static String fromChar(int value)
value
- Character value of entityCopyright © 2012 JBoss by Red Hat. All Rights Reserved.