Interface Parameterization

    • Method Detail

      • setValueForOption

        boolean setValueForOption​(Parameter<?> opt)
                           throws ParameterException
        Assign a value for an option, but not using default values and throwing exceptions on error.
        Parameters:
        opt - Parameter to set
        Returns:
        Success code
        Throws:
        ParameterException - on assignment errors.
      • reportError

        void reportError​(ParameterException e)
        Report a configuration error.
        Parameters:
        e - Destination to report errors to
      • hasUnusedParameters

        boolean hasUnusedParameters()
        Check for unused parameters
        Returns:
        true if at least one parameter was not consumed
      • hasErrors

        default boolean hasErrors()
        Return true when there have been errors.
        Returns:
        Success code
      • tryInstantiate

        default <C> C tryInstantiate​(java.lang.Class<C> c)
        Try to instantiate a particular class.
        Type Parameters:
        C - return type
        Parameters:
        c - Base class
        Returns:
        class instance or null