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 Details

    • SimpleMapConverter

      public SimpleMapConverter()
  • Method Details

    • 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)