Package edu.upf.taln.dri.lib.util
Class PropertyManager
- java.lang.Object
-
- edu.upf.taln.dri.lib.util.PropertyManager
-
public class PropertyManager extends Object
Classes to manage the configuration orpoerties of the Dr. Inventor Text Mining Framework.
-
-
Field Summary
Fields Modifier and Type Field Description static String
resourceFolder_fullPath
-
Constructor Summary
Constructors Constructor Description PropertyManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getProperty(String propertyName)
Retrieve a property from the library property file.static boolean
loadProperties()
Load the library property file.static boolean
setPropertyFilePath(String filePath)
Set the property file path
-
-
-
Field Detail
-
resourceFolder_fullPath
public static final String resourceFolder_fullPath
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadProperties
public static boolean loadProperties() throws InternalProcessingException
Load the library property file. The path of the library property file is specified as a local absolute (without trailing slash, for instance /home/mydir/DRIresources/DRIconfig.properties)- Returns:
- Throws:
InternalProcessingException
-
setPropertyFilePath
public static boolean setPropertyFilePath(String filePath)
Set the property file path- Parameters:
filePath
-- Returns:
-
getProperty
public static String getProperty(String propertyName)
Retrieve a property from the library property file. The path of the library property file is specified as a local absolute (without trailing slash, for instance /home/mydir/DRIresources/DRIconfig.properties)- Parameters:
propertyName
-- Returns:
- Throws:
InternalProcessingException
-
-