Package org.w3c.tidy
Class ParsePropertyImpl.ParseIndent
- java.lang.Object
-
- org.w3c.tidy.ParsePropertyImpl.ParseIndent
-
- All Implemented Interfaces:
ParseProperty
- Enclosing class:
- ParsePropertyImpl
static class ParsePropertyImpl.ParseIndent extends java.lang.Object implements ParseProperty
Parser for indent values.
-
-
Constructor Summary
Constructors Constructor Description ParseIndent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFriendlyName(java.lang.String option, java.lang.Object value, Configuration configuration)
Returns the "friendly name" for the passed value.java.lang.String
getOptionValues()
Returns the valid values.java.lang.String
getType()
Returns the option type.java.lang.Object
parse(java.lang.String value, java.lang.String option, Configuration configuration)
Parse a configuration option.
-
-
-
Method Detail
-
parse
public java.lang.Object parse(java.lang.String value, java.lang.String option, Configuration configuration)
Description copied from interface:ParseProperty
Parse a configuration option.- Specified by:
parse
in interfaceParseProperty
- Parameters:
value
- option valueoption
- option nameconfiguration
- actual configuration instance- Returns:
- parsed configuration value
- See Also:
ParseProperty.parse(java.lang.String, java.lang.String, org.w3c.tidy.Configuration)
-
getType
public java.lang.String getType()
Description copied from interface:ParseProperty
Returns the option type.- Specified by:
getType
in interfaceParseProperty
- Returns:
- option type
- See Also:
ParseProperty.getType()
-
getOptionValues
public java.lang.String getOptionValues()
Description copied from interface:ParseProperty
Returns the valid values.- Specified by:
getOptionValues
in interfaceParseProperty
- Returns:
- valid values (text)
- See Also:
ParseProperty.getOptionValues()
-
getFriendlyName
public java.lang.String getFriendlyName(java.lang.String option, java.lang.Object value, Configuration configuration)
Description copied from interface:ParseProperty
Returns the "friendly name" for the passed value. Needed to print actual configuration setting.- Specified by:
getFriendlyName
in interfaceParseProperty
- Parameters:
option
- option namevalue
- actual valueconfiguration
- actual configuration- Returns:
- "friendly" actual value
- See Also:
ParseProperty.getFriendlyName(java.lang.String, java.lang.Object, Configuration)
-
-