Package org.attoparser.minimize
Enum MinimizeHtmlMarkupHandler.MinimizeMode
- java.lang.Object
-
- java.lang.Enum<MinimizeHtmlMarkupHandler.MinimizeMode>
-
- org.attoparser.minimize.MinimizeHtmlMarkupHandler.MinimizeMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MinimizeHtmlMarkupHandler.MinimizeMode>
- Enclosing class:
- MinimizeHtmlMarkupHandler
public static enum MinimizeHtmlMarkupHandler.MinimizeMode extends java.lang.Enum<MinimizeHtmlMarkupHandler.MinimizeMode>
Enumeration for the type of minimization to be performed.
ONLY_WHITE_SPACE
for compacting only excess white space.COMPLETE
for performing all available compacting operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETE
ONLY_WHITE_SPACE
-
Field Summary
Fields Modifier and Type Field Description private boolean
minimizeBooleanAttributes
private boolean
removeComments
private boolean
unminimizeStandalones
private boolean
unquoteAttributes
-
Constructor Summary
Constructors Modifier Constructor Description private
MinimizeMode(boolean removeComments, boolean unquoteAttributes, boolean unminimizeStandalones, boolean minimizeBooleanAttributes)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MinimizeHtmlMarkupHandler.MinimizeMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MinimizeHtmlMarkupHandler.MinimizeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLY_WHITE_SPACE
public static final MinimizeHtmlMarkupHandler.MinimizeMode ONLY_WHITE_SPACE
-
COMPLETE
public static final MinimizeHtmlMarkupHandler.MinimizeMode COMPLETE
-
-
Method Detail
-
values
public static MinimizeHtmlMarkupHandler.MinimizeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MinimizeHtmlMarkupHandler.MinimizeMode c : MinimizeHtmlMarkupHandler.MinimizeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MinimizeHtmlMarkupHandler.MinimizeMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-