Package org.openbase.jul.processing
Interface VariableProvider
-
- All Known Implementing Classes:
VariableStore
public interface VariableProvider
* @author Divine Divine Threepwood
-
-
Field Summary
Fields Modifier and Type Field Description static String
VARIABLE_INITIATOR
static String
VARIABLE_TERMINATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getName()
Method return the name of this provider.String
getValue(String variable)
default String
getValue(String variable, String defaultValue)
Map<String,String>
getValues(String variableContains)
Method resolves all variables whose name contains the given identifier.
-
-
-
Field Detail
-
VARIABLE_INITIATOR
static final String VARIABLE_INITIATOR
- See Also:
- Constant Field Values
-
VARIABLE_TERMINATOR
static final String VARIABLE_TERMINATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 NotAvailableException
- Parameters:
variable
- the variable name to be resolved.- Returns:
- the value of the variable.
- Throws:
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.
-
-