public class Config extends Object
adminStatus
: tells (true/false
) if an "administrator" user profile is
activated (more detailed view of data)version
: contains the version number of Semantic Turkey in a:
major.minor.revision formatConstructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
static String |
getAnnotOntologyFileName() |
static File |
getDataDir() |
static VersionNumber |
getVersionNumber() |
static void |
initialize(File propFile) |
static boolean |
isAdminStatus() |
static boolean |
isSingleProjectMode()
checks if Semantic Turkey is being run in single project mode (i.e. providing the notion of
"current project", with dedicated APIs for retrieving it, where the current project is being reset each
time a new project is being loaded).
|
static void |
setAdminStatus(boolean adminStatus) |
static void |
setDataDirProp(String dataDirPath) |
static void |
setVersionNumber(VersionNumber vn) |
public static String getAnnotOntologyFileName()
public static void initialize(File propFile) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static boolean isAdminStatus()
public static void setAdminStatus(boolean adminStatus)
adminStatus
- the adminStatus to setpublic static void setVersionNumber(VersionNumber vn)
public static VersionNumber getVersionNumber()
public static boolean isSingleProjectMode()
set
method for this property as this is a specific system
configuration which must be setup before running the system, and is never thought to be changed at
runtime.public static File getDataDir()
public static void setDataDirProp(String dataDirPath) throws ConfigurationUpdateException
ConfigurationUpdateException
Copyright © 2016 ART Group, University of Rome, Tor Vergata. All rights reserved.