Package org.eclipse.emf.common
Class CommonPlugin.SimpleTargetPlatformRegistryImpl<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
org.eclipse.emf.common.CommonPlugin.SimpleTargetPlatformRegistryImpl<K,V>
- Type Parameters:
K- the type of the key.V- the type of the value.
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>
- Enclosing class:
CommonPlugin
public abstract static class CommonPlugin.SimpleTargetPlatformRegistryImpl<K,V>
extends HashMap<K,V>
A specialized
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.- Since:
- 2.14
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract KReturns the attribute value converted to a value of the key type.getTargetPlatformValues(String extensionPoint, String attributeName) Returns the set of values computed byfetchingall the given extension points andlooking upthe given attribute name in eachelementof that extension point.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
SimpleTargetPlatformRegistryImpl
public SimpleTargetPlatformRegistryImpl()Creates an instance.
-
-
Method Details
-
getTargetPlatformValues
Returns the set of values computed byfetchingall the given extension points andlooking upthe given attribute name in eachelementof that extension point. Each attribute value isconvertedto a value of the map's key type.- Parameters:
extensionPoint- the qualified extension point name.attributeName- the attribute name to query.- Returns:
- the values computed from the target platform, if the Plug-in Development Environment is available, or a copy of the
HashMap.keySet()otherwise. - See Also:
-
createKey
Returns the attribute value converted to a value of the key type.- Parameters:
attribute- the attribute value.- Returns:
- the attribute value converted to a value of the key type.
-