public class SurrogateQueryRegistry
extends java.lang.Object
public static SurrogateQueryRegistry instance()
public IProvider<PQuery> registerSurrogateQueryForFeature(IInputKey feature, PQuery surrogateQuery)
feature
- surrogateQuery
- java.lang.IllegalArgumentException
- if feature or surrogateQuery is nullpublic IProvider<PQuery> registerSurrogateQueryForFeature(IInputKey feature, IProvider<PQuery> surrogateQueryProvider)
feature
- surrogateQuery
- java.lang.IllegalArgumentException
- if feature or surrogateQuery is nullpublic IProvider<PQuery> addDynamicSurrogateQueryForFeature(IInputKey feature, PQuery surrogateQuery)
public IProvider<PQuery> addDynamicSurrogateQueryForFeature(IInputKey feature, IProvider<PQuery> surrogateQuery)
public IProvider<PQuery> removeDynamicSurrogateQueryForFeature(IInputKey feature)
public boolean hasSurrogateQueryFQN(IInputKey feature)
feature
- that may have surrogate query defined, null not allowedjava.lang.IllegalArgumentException
- if feature is nullpublic PQuery getSurrogateQuery(IInputKey feature)
feature
- for which the surrogate query FQN should be returnedjava.lang.IllegalArgumentException
- if feature is nulljava.util.NoSuchElementException
- if the feature has no surrogate query defined, use hasSurrogateQueryFQN(org.eclipse.incquery.runtime.matchers.context.IInputKey)
to checkpublic java.util.Map<IInputKey,PQuery> getRegisteredSurrogateQueryFQNMap()
getRegisteredSurrogateQueries()
insteadpublic java.util.Map<IInputKey,PQuery> getDynamicSurrogateQueryFQNMap()
getDynamicSurrogateQueries()
instead@Deprecated public java.util.Map<IInputKey,PQuery> getAllSurrogateQueryFQNMap()
getAllSurrogateQueries()
insteadpublic java.util.Set<IInputKey> getRegisteredSurrogateQueries()
public java.util.Set<IInputKey> getDynamicSurrogateQueries()
public java.util.Set<IInputKey> getAllSurrogateQueries()