Package jadex.commons

Class SimpleParameterGuesser

    • Field Detail

      • values

        protected java.util.Collection<?> values
        The values.
    • Constructor Detail

      • SimpleParameterGuesser

        public SimpleParameterGuesser​(IParameterGuesser parent)
        Create a new guesser.
      • SimpleParameterGuesser

        public SimpleParameterGuesser​(java.util.Collection<?> values)
        Create a new guesser.
      • SimpleParameterGuesser

        public SimpleParameterGuesser​(IParameterGuesser parent,
                                      java.util.Collection<?> values)
        Create a new guesser.
    • Method Detail

      • guessParameter

        public java.lang.Object guessParameter​(java.lang.Class<?> type,
                                               boolean exact)
        Guess a parameter.
        Specified by:
        guessParameter in interface IParameterGuesser
        Parameters:
        type - The type.
        exact - Test with exact
        Returns:
        The mapped value.
      • getParent

        public IParameterGuesser getParent()
        Get the parent guesser.
        Returns:
        The parent guesser.
      • setParent

        public void setParent​(IParameterGuesser parent)
        Set the parent.
        Parameters:
        parent - The parent.