public abstract class AbstractPlatform extends Object implements Platform
Modifier and Type | Field and Description |
---|---|
protected String |
colonReplacement |
protected org.slf4j.Logger |
logger |
protected String |
separatorReplacement |
protected String |
whitespaceReplacement |
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY
Constructor and Description |
---|
AbstractPlatform() |
Modifier and Type | Method and Description |
---|---|
File |
getApplicationDataDir()
Returns the directory in which Aduna applications can store their application-dependent data, returns
'getOSApplicationDataDir' unless the system property "aduna.platform.applicationdata.dir" has been set.
|
File |
getApplicationDataDir(String applicationName)
Returns the directory in which a specific application can store all its application-dependent data.
|
File |
getOSApplicationDataDir(String applicationName)
Returns the operating system dependent application data directory.
|
String |
getRelativeApplicationDataDir(String applicationName)
Get the directory relative to getApplicationDataDir() for the specified application.
|
String |
getRelativeApplicationDataDir(String applicationName,
boolean caseSensitive,
boolean replaceWhitespace,
boolean replaceColon)
Get the relative name of the application directory
|
File |
getUserHome()
Returns the directory for the current user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDirPreserveCase, dataDirReplaceColon, dataDirReplaceWhitespace, getName, getOSApplicationDataDir
protected final org.slf4j.Logger logger
protected String whitespaceReplacement
protected String separatorReplacement
protected String colonReplacement
public File getUserHome()
Platform
getUserHome
in interface Platform
public final File getApplicationDataDir()
Platform
getApplicationDataDir
in interface Platform
public final File getApplicationDataDir(String applicationName)
Platform
getApplicationDataDir
in interface Platform
applicationName
- the name of the application for which to determine the directoryPlatform.getApplicationDataDir()
public final File getOSApplicationDataDir(String applicationName)
Platform
getOSApplicationDataDir
in interface Platform
applicationName
- name of the applicationpublic String getRelativeApplicationDataDir(String applicationName)
Platform
getRelativeApplicationDataDir
in interface Platform
applicationName
- the name of the applicationpublic String getRelativeApplicationDataDir(String applicationName, boolean caseSensitive, boolean replaceWhitespace, boolean replaceColon)
applicationName
- name of the applicationcaseSensitive
- true when case-sensitivereplaceWhitespace
- true when whitespace is to be replacedreplaceColon
- true when colon needs to be replacedCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.