Class ParameterSet

    • Constructor Detail

      • ParameterSet

        public ParameterSet()
        Default constructor
    • Method Detail

      • addParameter

        public Parameter addParameter​(Parameter parameter)
        Adds a parameter to the set.
        Parameters:
        parameter - The parameter to add.
        Returns:
        The parameter added.
      • parameter

        public ParameterSet parameter​(Parameter parameter)
        Builder-pattern method for adding a parameter to the set.
        Parameters:
        parameter - The parameter to add.
        Returns:
        This ParameterSet.
      • apply

        public void apply​(Object bean)
        Invokes Parameter.apply(Object) for all parameters in the collection.
        Parameters:
        bean - The object whose bean attribute should be set.
      • addParameters

        public ParameterSet addParameters​(Object bean)
        Adds parameters to this set which correspond to any fields of the class of the given object annotated as ParameterFields.
        Parameters:
        bean - The object whose class may have ParameterField attributes.
        Returns:
        A reference to this set.
      • unsetRequiredParameters

        public ParameterSet unsetRequiredParameters()
        Returns a list of Parameters that are marked as required, but which have no value set.
        Returns:
        A possibly empty list of parameters that should have a value but don't.
      • invalidValueParameters

        public ParameterSet invalidValueParameters()
        Returns a list of Parameters that have a collection of possible values, but the assigned value is not among them.
        Returns:
        A possibly empty list of parameters that have a value not in Parameter.possibleValues.