public class LanguageSettingsStorage extends Object implements Cloneable
ICLanguageSettingEntry.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Map<String,List<ICLanguageSettingEntry>>> |
fStorage
Storage to keep settings entries.
|
| Constructor and Description |
|---|
LanguageSettingsStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all the entries for all resources and all languages.
|
LanguageSettingsStorage |
clone()
Clone storage for the entries.
|
boolean |
equals(Object obj) |
Set<String> |
getLanguages() |
static List<ICLanguageSettingEntry> |
getPooledEmptyList() |
static List<ICLanguageSettingEntry> |
getPooledList(List<ICLanguageSettingEntry> entries)
Find and return the equal list of entries from the pool to conserve the memory.
|
Set<String> |
getResourcePaths(String languageId)
Returns set of paths for all resources associated with entries for given language.
|
List<ICLanguageSettingEntry> |
getSettingEntries(String rcProjectPath,
String languageId)
Returns the list of setting entries for the given resource and language.
|
int |
hashCode() |
boolean |
isEmpty() |
void |
setSettingEntries(String rcProjectPath,
String languageId,
List<? extends ICLanguageSettingEntry> entries)
Sets language settings entries for the resource and language.
|
public List<ICLanguageSettingEntry> getSettingEntries(String rcProjectPath, String languageId)
rcProjectPath - - path to the resource relative to the project.languageId - - language id.null if no settings defined.public void setSettingEntries(String rcProjectPath, String languageId, List<? extends ICLanguageSettingEntry> entries)
rcProjectPath - - path to the resource relative to the project. If null the entries are
considered to be being defined as default entries for resources.languageId - - language id. If null, then entries are considered
to be defined for the language scope.entries - - language settings entries to set.public boolean isEmpty()
true if the storage is empty or false otherwise.public void clear()
public Set<String> getLanguages()
null.public Set<String> getResourcePaths(String languageId)
languageId - - language ID.null.public static List<ICLanguageSettingEntry> getPooledList(List<ICLanguageSettingEntry> entries)
entries - - list of entries to pool.public static List<ICLanguageSettingEntry> getPooledEmptyList()
public LanguageSettingsStorage clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.