Package org.dspace.util
Class SimpleMapConverter
- java.lang.Object
-
- org.dspace.util.SimpleMapConverter
-
public class SimpleMapConverter extends Object
Class that parse a properties file present in the crosswalks directory and allows to get its values given a key.- Author:
- Andrea Bollini, Kostas Stamatis, Luigi Andrea Pascarelli, Panagiotis Koutsourakis, Luca Giamminonni
-
-
Constructor Summary
Constructors Constructor Description SimpleMapConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue(String key)Returns the value related to the given key.voidinit()Parse the configured property file.voidsetConfigurationService(ConfigurationService configurationService)voidsetConverterNameFile(String converterNameFile)voidsetDefaultValue(String defaultValue)
-
-
-
Method Detail
-
init
public void init()
Parse the configured property file.
-
getValue
public String getValue(String key)
Returns the value related to the given key. If the given key is not found the incoming value is returned.- Parameters:
key- the key to search for a value- Returns:
- the value
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
setConverterNameFile
public void setConverterNameFile(String converterNameFile)
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-