Package org.attoparser.minimize
Enum Class MinimizeHtmlMarkupHandler.MinimizeMode
java.lang.Object
java.lang.Enum<MinimizeHtmlMarkupHandler.MinimizeMode>
org.attoparser.minimize.MinimizeHtmlMarkupHandler.MinimizeMode
- All Implemented Interfaces:
Serializable
,Comparable<MinimizeHtmlMarkupHandler.MinimizeMode>
,Constable
- Enclosing class:
MinimizeHtmlMarkupHandler
public static enum MinimizeHtmlMarkupHandler.MinimizeMode
extends 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MinimizeMode
(boolean removeComments, boolean unquoteAttributes, boolean unminimizeStandalones, boolean minimizeBooleanAttributes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONLY_WHITE_SPACE
-
COMPLETE
-
-
Field Details
-
removeComments
private boolean removeComments -
unquoteAttributes
private boolean unquoteAttributes -
unminimizeStandalones
private boolean unminimizeStandalones -
minimizeBooleanAttributes
private boolean minimizeBooleanAttributes
-
-
Constructor Details
-
MinimizeMode
private MinimizeMode(boolean removeComments, boolean unquoteAttributes, boolean unminimizeStandalones, boolean minimizeBooleanAttributes)
-
-
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
-