Package org.attoparser.minimize
Enum MinimizeHtmlMarkupHandler.MinimizeMode
java.lang.Object
java.lang.Enum<MinimizeHtmlMarkupHandler.MinimizeMode>
org.attoparser.minimize.MinimizeHtmlMarkupHandler.MinimizeMode
- All Implemented Interfaces:
Serializable,Comparable<MinimizeHtmlMarkupHandler.MinimizeMode>,java.lang.constant.Constable
- Enclosing class:
MinimizeHtmlMarkupHandler
public static enum MinimizeHtmlMarkupHandler.MinimizeMode
extends Enum<MinimizeHtmlMarkupHandler.MinimizeMode>
Enumeration for the type of minimization to be performed.
ONLY_WHITE_SPACEfor compacting only excess white space.COMPLETEfor 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 booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMinimizeMode(boolean removeComments, boolean unquoteAttributes, boolean unminimizeStandalones, boolean minimizeBooleanAttributes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-