public class SharedDefaults extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
Document |
document |
static String |
GET |
static String |
ResourceFolder
Specifies the folder name present in the plugin
|
static String |
SET
Static reference string for getting (GET) and storing (SET)
shareddefaults.xml
|
| Constructor and Description |
|---|
SharedDefaults()
Default Constructor for creating and instantiating objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToBackEndStorage(String name,
String value)
Adds data to the backend XML (persistence) Data obtained from the
PreferencePage GUI.
|
void |
deleteBackEndStorage(String[] deleteName)
Deletes the key-value pair from the backend with Key as identifier.
|
static SharedDefaults |
getInstance() |
Map<String,String> |
getSharedDefaultsMap()
This method returns the latest key value pair (HashMap)
|
void |
persistSharedValueMap()
This method persists the latest data (HashMap) in the XML file New data
obtained from the PreferencePage GUI.
|
void |
updateShareDefaultsMap(Map<String,String> sharedMap)
This method updates the HashMap with new key-value pair into the XML file
|
void |
updateToBackEndStorage(String updateName,
String updateValue)
Updates backend with changed value for a specific key(name)
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic Document document
public static final String SET
public static final String GET
public static final String ResourceFolder
public SharedDefaults()
public static SharedDefaults getInstance()
public void updateShareDefaultsMap(Map<String,String> sharedMap)
sharedMap - public void persistSharedValueMap()
public Map<String,String> getSharedDefaultsMap()
public void addToBackEndStorage(String name, String value)
public void updateToBackEndStorage(String updateName, String updateValue)
updateName - updateValue - public void deleteBackEndStorage(String[] deleteName)
deleteName - Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.