org.w3c.tidy
Interface ParseProperty


public interface ParseProperty

Interface for configuration property parser.

Version:
$Revision $ ($Author $)
Author:
Fabrizio Giustina

Method Summary
 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

java.lang.Object parse(java.lang.String value,
                       java.lang.String option,
                       Configuration configuration)
Parse a configuration option.

Parameters:
value - option value
option - option name
configuration - actual configuration instance
Returns:
parsed configuration value

getType

java.lang.String getType()
Returns the option type.

Returns:
option type

getOptionValues

java.lang.String getOptionValues()
Returns the valid values.

Returns:
valid values (text)

getFriendlyName

java.lang.String getFriendlyName(java.lang.String option,
                                 java.lang.Object value,
                                 Configuration configuration)
Returns the "friendly name" for the passed value. Needed to print actual configuration setting.

Parameters:
option - option name
value - actual value
configuration - actual configuration
Returns:
"friendly" actual value


Copyright © 2000-2006 sourceforge. All Rights Reserved.