Package org.gcube.common.software.model
Class Variables
- java.lang.Object
-
- org.gcube.common.software.model.Variables
-
public class Variables extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description Variables()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String key, Object value)protected Set<String>findVariables(String value)Search the variables used in the String provided as argumentMap<String,Object>getProperties()Set<String>parse()protected Set<String>parseAndReplace()Set<String>parseWith(Variables variables)StringreplaceAllVariables(String value)protected Set<String>replaceAllVariables(String key, String value)voidsetProperties(Map<String,Object> properties)
-
-
-
Method Detail
-
findVariables
protected Set<String> findVariables(String value)
Search the variables used in the String provided as argument- Parameters:
string- the string to analyze to find variables- Returns:
- the list of used variables
-
replaceAllVariables
public String replaceAllVariables(String value) throws Exception
- Throws:
Exception
-
replaceAllVariables
protected Set<String> replaceAllVariables(String key, String value) throws Exception
- Throws:
Exception
-
-