Interface MutableParameters

    • Method Detail

      • addParameter

        void addParameter​(String name,
                          String displayName,
                          Class type,
                          Object value,
                          boolean isReadOnly)
        Adds a parameter to this Parameters.
        Parameters:
        name - the name of the parameter
        displayName - the display name for the parameter
        type - the type of the parameter
        value - the default value of the parameter
        isReadOnly - whether or not the parameter is read only.
      • addConstraint

        void addConstraint​(String name,
                           List constrainingList)
        Constains the value of the named to parameter to those in the list.
        Parameters:
        name - the name of the parameter
        constrainingList - a list containing the possible values for the named parameter
      • addConvertor

        void addConvertor​(String name,
                          StringConverter converter)
        Adds a converter to convert the named parameter back and forth to a String.
        Parameters:
        name - the name of the parameter
        converter - the converter
      • addConstraint

        void addConstraint​(String name,
                           SteppedRange constrainingRange)
        Constrains the value of the named parameter to those in the specified range.
        Parameters:
        name - the name of the parmaeter
        constrainingRange - a range of the possible values for the named parameter
      • removeParameter

        boolean removeParameter​(String name)
        Removes the named parameter
        Parameters:
        name - the name of the parameter
        Returns:
        whether or not removal was successful