Interface ChoiceValues

  • All Known Implementing Classes:
    ChoiceValues, SecretIdChoiceValues
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ChoiceValues
    • Method Detail

      • getChoiceValues

        Map<String,​String> getChoiceValues()
        Abstract method that must be implemented by a class extending this class, and should return the choice values and their corresponding I18N key, for the attribute.
        Returns:
        choice values for the attribute as a java.util.Map. Key being the choice and the value being the I18N key
      • getChoiceValues

        default Map<String,​String> getChoiceValues​(Map<String,​Object> envParams)
        Returns the choice values for attribute for the given environment parameters. The default implementation calls the interface getChoiceValues without the parameter. A class extending this class can override this method to return the choice values and their corresponding I18N key, for the attribute.
        Parameters:
        envParams - environment parameters
        Returns:
        choice values for the attribute as a java.util.Map. Key being the choice and the value being the I18N key