Interface VariableProvider

All Known Implementing Classes:
VariableStore

public interface VariableProvider
* @author Divine Divine Threepwood
  • Field Details

  • Method Details

    • getName

      String getName()
      Method return the name of this provider. The name should inform about the origin.
      Returns:
      the name as string.
    • getValue

      String getValue(String variable) throws org.openbase.jul.exception.NotAvailableException
      Parameters:
      variable - the variable name to be resolved.
      Returns:
      the value of the variable.
      Throws:
      org.openbase.jul.exception.NotAvailableException - is thrown in case the variable could not be resolved.
    • getValue

      default String getValue(String variable, String defaultValue)
      Parameters:
      variable - the variable name to be resolved.
      defaultValue - the value to return in case the variable could not be resolved.
      Returns:
      the value of the variable.
    • getValues

      Map<String,String> getValues(String variableContains)
      Method resolves all variables whose name contains the given identifier.
      Parameters:
      variableContains - the identifier to select the variables.
      Returns:
      a map of the variable name and its current value.