Package org.htmlcleaner
Enum Class Display
- All Implemented Interfaces:
Serializable
,Comparable<Display>
,Constable
Most HTML 4 elements permitted within the BODY are classified as either
block-level elements or inline elements. This enumeration contains
corresponding constants to distinguish them.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe following elements may be used as either block-level elements or inline elements.Block-level elements typically contain inline elements and other block-level elements.Inline elements typically may only contain text and other inline elements.Elements that are not actually inline or block, usually such elements are not rendered at all. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Display
(boolean afterTagLineBreakNeeded, boolean leadingAndEndWhitespacesAllowed) -
Method Summary
-
Enum Constant Details
-
block
Block-level elements typically contain inline elements and other block-level elements. When rendered visually, block-level elements usually begin on a new line. -
inline
Inline elements typically may only contain text and other inline elements. When rendered visually, inline elements do not usually begin on a new line. -
any
The following elements may be used as either block-level elements or inline elements. If used as inline elements (e.g., within another inline element or a P), these elements should not contain any block-level elements. -
none
Elements that are not actually inline or block, usually such elements are not rendered at all.
-
-
Field Details
-
afterTagLineBreakNeeded
private boolean afterTagLineBreakNeeded -
leadingAndEndWhitespacesAllowed
private boolean leadingAndEndWhitespacesAllowed
-
-
Constructor Details
-
Display
private Display(boolean afterTagLineBreakNeeded, boolean leadingAndEndWhitespacesAllowed)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAfterTagLineBreakNeeded
public boolean isAfterTagLineBreakNeeded()- Returns:
- true to advise serializers to put line break after tags with such a display type.
-
isLeadingAndEndWhitespacesAllowed
public boolean isLeadingAndEndWhitespacesAllowed()- Returns:
- true if tag contents can have single leading or end whitespace
-