|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.HTMLElements
Information about HTML elements and attributes for use HTML formatter.
Field Summary | |
static Integer |
BLOCK_FORMATTING
Format element as a block. |
static Integer |
HEADER_FORMATTING
Format element as a header. |
static Integer |
INLINE_FORMATTING
Format element as a inline. |
Method Summary | |
(package private) static void |
Static constructor. |
Integer |
getElementFormatting(String tagName)
Determine the formatting to use for an element. |
static boolean |
hasCloseTag(String tagName)
Check if an element is may have a close tag. |
static boolean |
isBooleanAttr(String attrName)
Check if an attribute does not have a value (is boolean). |
static boolean |
isPreserveSpaceTag(String tagName)
Tests if a tag is one reserved for preserving space and, therefore, no formatting. |
static boolean |
isScriptStyle(Element element)
Deprecated. use isScriptStyleTag(String) instead |
static boolean |
isScriptStyleTag(String tagName)
Tests if a tag is one reserved for no formatting whatsoever, including preserving space and no special character or entity resolution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Integer BLOCK_FORMATTING
public static final Integer HEADER_FORMATTING
public static final Integer INLINE_FORMATTING
Method Detail |
static void()
public static boolean isBooleanAttr(String attrName)
attrName
- Nme of attribute, must be lower-case.public Integer getElementFormatting(String tagName)
tagName
- Name of element, must be upper-case.public static boolean hasCloseTag(String tagName)
tagName
- Name of element, must be upper-case.public static boolean isScriptStyle(Element element)
public static boolean isScriptStyleTag(String tagName)
tagName
- Name of element, must be upper-case.public static boolean isPreserveSpaceTag(String tagName)
tagName
- Name of element, must be upper-case.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |