Package org.w3c.tidy

Class 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

      Fields 
      Modifier and Type Field Description
      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

      Constructors 
      Constructor Description
      Flag​(java.lang.String name, java.lang.String fieldName, ParseProperty parser)
      Instantiates a new Flag.
    • 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

      • Flag

        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)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        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)