org.eclipse.emf.emfstore.internal.server.conflictDetection
Class ModelElementIdReservationMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,FeatureNameReservationMap>
              extended by org.eclipse.emf.emfstore.internal.server.conflictDetection.ModelElementIdReservationMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,FeatureNameReservationMap>

public class ModelElementIdReservationMap
extends LinkedHashMap<String,FeatureNameReservationMap>

Tracks any reservation based on ModelElementId s.

Author:
mkoegel, emueller
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ModelElementIdReservationMap()
           
 
Method Summary
 Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId)
          Returns a set of ConflictBucketCandidates for a given ModelElementId.
 Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId, String featureName)
          Returns a set of ConflictBucketCandidates for the combination of ModelElementId and a feature name.
 Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId, String featureName, String oppositeModelElement)
          Returns a set of ConflictBucketCandidates for the combination of ModelElementId, a feature name and an opposite model element.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ModelElementIdReservationMap

public ModelElementIdReservationMap()
Method Detail

getConflictBucketCandidates

public Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId)
Returns a set of ConflictBucketCandidates for a given ModelElementId.

Parameters:
modelElementId - the ModelElementId for which to retrieve the ConflictBucketCandidates
Returns:
a set of ConflictBucketCandidates for the given ModelElementId

getConflictBucketCandidates

public Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId,
                                                                String featureName)
Returns a set of ConflictBucketCandidates for the combination of ModelElementId and a feature name.

Parameters:
modelElementId - the ModelElementId for which to retrieve the ConflictBucketCandidates
featureName - a feature name
Returns:
a set of ConflictBucketCandidates for the combination of ModelElementId and a feature name.

getConflictBucketCandidates

public Set<ConflictBucketCandidate> getConflictBucketCandidates(String modelElementId,
                                                                String featureName,
                                                                String oppositeModelElement)
Returns a set of ConflictBucketCandidates for the combination of ModelElementId, a feature name and an opposite model element.

Parameters:
modelElementId - the ModelElementId for which to retrieve the ConflictBucketCandidates
featureName - a feature name
oppositeModelElement - an opposite model element
Returns:
a set of ConflictBucketCandidates for the combination of ModelElementId, a feature name and an opposite model element


Copyright © 2015. All Rights Reserved.