public class OKW_Properties extends Properties
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<String> |
CoreProperties
\~german
Liste der einzubindenen *.properties Dateien, die aus dem Resourcen Verzeichniss der Core.
|
protected ArrayList<String> |
FileProperties
\~german
Liste der einzubindenen *.properties-Dateien.
|
protected ArrayList<String> |
ResoursesProperties
\~german
Liste der einzubindenen *.properties Dateien, die aus den Resourcen Verzeichnissen.
|
defaults| Modifier and Type | Method and Description |
|---|---|
void |
addPropertiesFile(String fpsFileName)
\~german
Eine *.Properties-Datei zur Liste OKW_Properties.FileProperties hinzufügen.
|
Boolean |
addResource(String fpsResourceName)
\~german
Eine .Properties-Datei aus dem Resource-Verzeichniss zur Liste
OKW_Properties.ResoursesProperties hinzufügen.
|
void |
clear()
\~german
Löscht alle Properties-Listen
|
static OKW_Properties |
getInstance()
\~german
Holt die einzige Instanz dieser Klasse.
|
ArrayList<String> |
getKeysStartswith(String Startwitth)
\~german
Ermittelt alle Properties die mit dem gegebenen String Anfangen
Beispiel:
keysStartswith( "frmSeChrome.options" ) holt alle Properties wie
- frmSeChrome.option.disable-logging=disable-logging
- frmSeChrome.option.version=version
- frmSeChrome.option.ignore-certificate-errors=ignore-certificate-errors
\~english
\~
|
protected ArrayList<String> |
getPropertiesFilesFromResources(String folder)
\~german
Erstellt eine Liste der "*.properties"-Dateien des aktuellen
Projektes
Hinweis: Das ist eine rekursive Methode
|
ArrayList<String> |
getPropertiesForKeysStartswith(String Startwith)
\~german
Ermittelt alle Properties der keys, die mit dem gegebenen String Startwitth Anfangen.
|
String |
getProperty(String fpsKey)
\~german
Ermittelt den aktuellen Wert des Propertys gegeben mit dem Schlüssel fpsKey.
|
String |
getProperty(String fpsKey,
String fpsDefault,
Object... Parameters)
\~german
Ermittelt den aktuellen Wert des Propertys gegeben mit dem Schlüssel fpsKey und es wird $P1$ mit dem Wert von Parameter_1 ersetzt.
|
Boolean |
getProperty2Boolean(String fpsKey,
String fpsDefault)
\~german
Ermittelt den aktuellen Wert des Propertys gegeben mit dem Schlüssel fpsKey.
|
protected ArrayList<String> |
getPropertyFiles(String Patternstring,
String PropPath,
String PropPathWin)
\~german
Es werden die Properties aus dem reasource Verzeichniss geladen.
|
void |
init()
\~german
Initialisiert diese Klasse:
1.
|
void |
PrintProperties() |
void |
PrintPropertiesSources()
\~german
Druckt die Gefundenen Propertie Quellen
\~english
\~
|
void |
updateProperties()
\~german
Aktualisert/Lädt die Properties in der unter OKW_Properties beschriebene Weise.
|
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuesprotected ArrayList<String> CoreProperties
protected ArrayList<String> ResoursesProperties
public static OKW_Properties getInstance()
public void clear()
public void init()
protected ArrayList<String> getPropertyFiles(String Patternstring, String PropPath, String PropPathWin)
public void updateProperties()
public Boolean addResource(String fpsResourceName)
fpsFileName - ? - public void addPropertiesFile(String fpsFileName)
fpsFileName - ? - protected ArrayList<String> getPropertiesFilesFromResources(String folder)
? - ? - public void PrintProperties()
public void PrintPropertiesSources()
public ArrayList<String> getKeysStartswith(String Startwitth) throws IOException
IOExceptionpublic ArrayList<String> getPropertiesForKeysStartswith(String Startwith) throws IOException
IOExceptionpublic String getProperty(String fpsKey)
getProperty in class PropertiesfpsKey - Schlüssel des Propertys.fpsKey - Key of Propertys.public String getProperty(String fpsKey, String fpsDefault, Object... Parameters)
fpsKey - Schlüssel des Propertys.fpsDefault - Default Wert, falls kein Property gefunden wird. Wenn zwingend ein Propertiwert gelesen werden soll, dann diesen wert auf null setzen.Parameter_1 - Wert, der für $P1$ eingesetzt wird.fpsKey - Key of Propertys.fpsDefault - Default value if no property is found. If a properti value must be read, then set this value to zero.Parameter_1 - Value to be put in for $P1$.public Boolean getProperty2Boolean(String fpsKey, String fpsDefault)
fpsKey - Property Schlüssel des Boolean Propertys.fpsDefault - Default-Wert des Boolean Propertys als String. Mögliche Werte "false"/"true".fpsKey - Property key of the Boolean Propertys.fpsDefault - Default value of the Boolean Propertys as string. Possible values "false"/"true"Copyright © 2021 OpenKeyWord. All rights reserved.