org.w3c.tidy
Class Configuration.Flag

java.lang.Object
  extended byorg.w3c.tidy.Configuration.Flag
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
Configuration

static class Configuration.Flag
extends java.lang.Object
implements java.lang.Comparable

A configuration option.


Field Summary
private  java.lang.String fieldName
          field name.
private  java.lang.reflect.Field location
          Field where the evaluated value is saved.
private  java.lang.String name
          option name.
private  ParseProperty parser
          Parser for the configuration property.
 
Constructor Summary
(package private) Configuration.Flag(java.lang.String name, java.lang.String fieldName, ParseProperty parser)
          Instantiates a new Flag.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.reflect.Field getLocation()
          Getter for location.
 java.lang.String getName()
          Getter for name.
 ParseProperty getParser()
          Getter for parser.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
option name.


fieldName

private java.lang.String fieldName
field name.


location

private java.lang.reflect.Field location
Field where the evaluated value is saved.


parser

private ParseProperty parser
Parser for the configuration property.

Constructor Detail

Configuration.Flag

Configuration.Flag(java.lang.String name,
                   java.lang.String fieldName,
                   ParseProperty parser)
Instantiates a new Flag.

Parameters:
name - option name
fieldName - field name (can be null)
parser - parser for property
Method Detail

getLocation

public java.lang.reflect.Field getLocation()
Getter for location.

Returns:
Returns the location.

getName

public java.lang.String getName()
Getter for name.

Returns:
Returns the name.

getParser

public ParseProperty getParser()
Getter for parser.

Returns:
Returns the parser.

equals

public boolean equals(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)