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, waitdataDirPreserveCase, dataDirReplaceColon, dataDirReplaceWhitespace, getName, getOSApplicationDataDirprotected final org.slf4j.Logger logger
protected String whitespaceReplacement
protected String separatorReplacement
protected String colonReplacement
public File getUserHome()
PlatformgetUserHome in interface Platformpublic final File getApplicationDataDir()
PlatformgetApplicationDataDir in interface Platformpublic final File getApplicationDataDir(String applicationName)
PlatformgetApplicationDataDir in interface PlatformapplicationName - the name of the application for which to determine the directoryPlatform.getApplicationDataDir()public final File getOSApplicationDataDir(String applicationName)
PlatformgetOSApplicationDataDir in interface PlatformapplicationName - name of the applicationpublic String getRelativeApplicationDataDir(String applicationName)
PlatformgetRelativeApplicationDataDir in interface PlatformapplicationName - 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-2022 Eclipse Foundation. All Rights Reserved.