org.w3c.tidy
Class ParsePropertyImpl.ParseCharEncoding

java.lang.Object
  extended byorg.w3c.tidy.ParsePropertyImpl.ParseCharEncoding
All Implemented Interfaces:
ParseProperty
Enclosing class:
ParsePropertyImpl

static class ParsePropertyImpl.ParseCharEncoding
extends java.lang.Object
implements ParseProperty

parse character encoding option. Can be RAW, ASCII, LATIN1, UTF8, ISO2022, MACROMAN, UTF16LE, UTF16BE, UTF16, WIN1252, BIG5, SHIFTJIS


Constructor Summary
(package private) ParsePropertyImpl.ParseCharEncoding()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsePropertyImpl.ParseCharEncoding

ParsePropertyImpl.ParseCharEncoding()
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 interface ParseProperty
Parameters:
value - option value
option - option name
configuration - 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 interface ParseProperty
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 interface ParseProperty
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 interface ParseProperty
Parameters:
option - option name
value - actual value
configuration - actual configuration
Returns:
"friendly" actual value
See Also:
ParseProperty.getFriendlyName(java.lang.String, java.lang.Object, Configuration)