Package org.dspace.util
Class SimpleMapConverter
java.lang.Object
org.dspace.util.SimpleMapConverter
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value related to the given key.voidinit()Parse the configured property file.voidsetConfigurationService(ConfigurationService configurationService) voidsetConverterNameFile(String converterNameFile) voidsetDefaultValue(String defaultValue)
-
Constructor Details
-
SimpleMapConverter
public SimpleMapConverter()
-
-
Method Details
-
init
public void init()Parse the configured property file. -
getValue
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
-
setConverterNameFile
-
setConfigurationService
-