Class ShortOption

    • Constructor Detail

      • ShortOption

        protected ShortOption​(OptionManager owner,
                              String commandline,
                              String property,
                              Object defValue,
                              UserMode minUserMode)
        Initializes the option. Will always output the default value.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option (no leading dash)
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        minUserMode - the minimum user mode before showing this option
      • ShortOption

        protected ShortOption​(OptionManager owner,
                              String commandline,
                              String property,
                              Object defValue,
                              boolean outputDefValue,
                              UserMode minUserMode)
        Initializes the option.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option (no leading dash)
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        outputDefValue - whether to output the default value or not
        minUserMode - the minimum user mode before showing this option
      • ShortOption

        protected ShortOption​(OptionManager owner,
                              String commandline,
                              String property,
                              Object defValue,
                              Short lower,
                              Short upper,
                              UserMode minUserMode)
        Initializes the option. Will always output the default value.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        lower - the lower bound (incl; only for numeric values), use null to use unbounded
        upper - the upper bound (incl; only for numeric values), use null to use unbounded
        minUserMode - the minimum user mode before showing this option
      • ShortOption

        protected ShortOption​(OptionManager owner,
                              String commandline,
                              String property,
                              Object defValue,
                              boolean outputDefValue,
                              Short lower,
                              Short upper,
                              UserMode minUserMode)
        Initializes the option.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        outputDefValue - whether to output the default value or not
        lower - the lower bound (incl; only for numeric values), use null to use unbounded
        upper - the upper bound (incl; only for numeric values), use null to use unbounded
        minUserMode - the minimum user mode before showing this option