public abstract class AbstractXMLNotifier extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<IXMLSettingFeature,Set<String>> |
cache |
Constructor and Description |
---|
AbstractXMLNotifier(IXMLNotificationService notificationService) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(IXMLSettingFeature key,
String value)
Adds
value to the cache set identified by key
If such cache set does not exist, this method will initialize it with
value added |
void |
evictKey(IXMLSettingFeature key)
Evicts the set identified by the provided key, from the cache
|
void |
evictValue(String value)
Evicts the provided value from all cached sets
|
boolean |
existsInCache(IXMLSettingFeature key,
Set<String> values)
Returns true if
values is equal to the cache set
identified by key and false otherwise |
boolean |
existsInCache(IXMLSettingFeature key,
String value)
Returns true if
value exists in the cache set
identified by key and false otherwise |
protected SharedSettings |
getSharedSettings() |
protected void |
sendNotification(String message,
org.eclipse.lsp4j.MessageType messageType,
org.eclipse.lsp4j.Command... commands) |
void |
setCacheValues(IXMLSettingFeature key,
Set<String> values)
Sets the cache set identified by
key |
protected final Map<IXMLSettingFeature,Set<String>> cache
public AbstractXMLNotifier(IXMLNotificationService notificationService)
public boolean existsInCache(IXMLSettingFeature key, String value)
value
exists in the cache set
identified by key
and false otherwisekey
- the key for the cache setvalue
- the value to checkvalue
exists in the cache set
identified by key
and false otherwisepublic boolean existsInCache(IXMLSettingFeature key, Set<String> values)
values
is equal to the cache set
identified by key
and false otherwisekey
- the key for the cache setvalues
- the values set to checkvalues
is equal to the cache set
identified by key
and false otherwisepublic void addToCache(IXMLSettingFeature key, String value)
value
to the cache set identified by key
If such cache set does not exist, this method will initialize it with
value
addedkey
- the key for the cache set to add tovalue
- the value to addpublic void setCacheValues(IXMLSettingFeature key, Set<String> values)
key
key
- the key for the cache setvalues
- the cache setpublic void evictKey(IXMLSettingFeature key)
key
- public void evictValue(String value)
value
- protected void sendNotification(String message, org.eclipse.lsp4j.MessageType messageType, org.eclipse.lsp4j.Command... commands)
protected SharedSettings getSharedSettings()
Copyright © 2022. All rights reserved.