K - the type of the key.V - the type of the value.public abstract static class CommonPlugin.SimpleTargetPlatformRegistryImpl<K,V>
extends java.util.HashMap<K,V>
HashMap map that supports computing information from the target platform, if the PDE is available.
It is abstract because the createKey(String) method must be specialized to convert each attribute's string value to a value of the map's key type.| Constructor and Description |
|---|
SimpleTargetPlatformRegistryImpl()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract K |
createKey(java.lang.String attribute)
Returns the attribute value converted to a value of the key type.
|
protected java.util.Set<K> |
getTargetPlatformValues(java.lang.String extensionPoint,
java.lang.String attributeName)
Returns the set of values computed by
fetching all the given extension points
and looking up the given attribute name in each element of that extension point. |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic SimpleTargetPlatformRegistryImpl()
protected java.util.Set<K> getTargetPlatformValues(java.lang.String extensionPoint, java.lang.String attributeName)
fetching all the given extension points
and looking up the given attribute name in each element of that extension point.
Each attribute value is converted to a value of the map's key type.extensionPoint - the qualified extension point name.attributeName - the attribute name to query.HashMap.keySet() otherwise.createKey(String)protected abstract K createKey(java.lang.String attribute)
attribute - the attribute value.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature