Package org.openbase.jul.processing
Class VariableStore
- java.lang.Object
-
- org.openbase.jul.processing.VariableStore
-
- All Implemented Interfaces:
VariableProvider
public class VariableStore extends Object implements VariableProvider
- Author:
- Divine Threepwood
-
-
Field Summary
-
Fields inherited from interface org.openbase.jul.processing.VariableProvider
VARIABLE_INITIATOR, VARIABLE_TERMINATOR
-
-
Constructor Summary
Constructors Constructor Description VariableStore(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Method return the name of this provider.String
getValue(String key)
Resolves the value for the given key.Map<String,String>
getValues(String variableContains)
Method resolves all variables whose name contains the given identifier.void
store(String key, String value)
Stores the key value pair into the variable Store.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openbase.jul.processing.VariableProvider
getValue
-
-
-
-
Constructor Detail
-
VariableStore
public VariableStore(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:VariableProvider
Method return the name of this provider. The name should inform about the origin.- Specified by:
getName
in interfaceVariableProvider
- Returns:
- the name as string.
-
getValue
public String getValue(String key) throws NotAvailableException
Resolves the value for the given key.- Specified by:
getValue
in interfaceVariableProvider
- Parameters:
key
-- Returns:
- Throws:
NotAvailableException
-
getValues
public Map<String,String> getValues(String variableContains)
Method resolves all variables whose name contains the given identifier.- Specified by:
getValues
in interfaceVariableProvider
- Parameters:
variableContains
- the identifier to select the variables.- Returns:
- a map of the variable name and its current value.
-
-