public class InstanceUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InstanceUtil.InstantiatedClassifier |
Modifier and Type | Field and Description |
---|---|
static org.eclipse.emf.common.util.EList<PrototypeBinding> |
noBindings |
Constructor and Description |
---|
InstanceUtil() |
Modifier and Type | Method and Description |
---|---|
static ComponentClassifier |
getComponentClassifier(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component classifier of a component instance.
|
static ComponentImplementation |
getComponentImplementation(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component implementation of a component instance.
|
static ComponentType |
getComponentType(ComponentInstance ci,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component type of a component instance.
|
static FeatureGroupType |
getFeatureGroupType(FeatureInstance fi,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the feature group classifier of a feature instance.
|
static InstanceUtil.InstantiatedClassifier |
getInstantiatedClassifier(InstanceObject iobj,
int index)
Get the component or feature group classifier that is instantiated by an
instance object.
|
static InstanceUtil.InstantiatedClassifier |
getInstantiatedClassifier(InstanceObject iobj,
int index,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Get the component or feature group classifier that is instantiated by an
instance object.
|
static ComponentPrototypeActual |
resolveComponentPrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given component prototype.
|
static FeatureGroupPrototypeActual |
resolveFeatureGroupPrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given feature group prototype.
|
static FeaturePrototypeActual |
resolveFeaturePrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given feature prototype.
|
static PrototypeBinding |
resolvePrototype(Prototype proto,
InstanceObject context,
java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
Find the binding for a given prototype.
|
public static org.eclipse.emf.common.util.EList<PrototypeBinding> noBindings
public static ComponentType getComponentType(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static ComponentImplementation getComponentImplementation(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static ComponentClassifier getComponentClassifier(ComponentInstance ci, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
ci
- the component instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static FeatureGroupType getFeatureGroupType(FeatureInstance fi, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
fi
- the feature instanceindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static InstanceUtil.InstantiatedClassifier getInstantiatedClassifier(InstanceObject iobj, int index)
iobj
- the instance objectindex
- the index of the instance object in an arraypublic static InstanceUtil.InstantiatedClassifier getInstantiatedClassifier(InstanceObject iobj, int index, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
iobj
- the instance objectindex
- the index of the instance object in an arrayclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static ComponentPrototypeActual resolveComponentPrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static FeatureGroupPrototypeActual resolveFeatureGroupPrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static FeaturePrototypeActual resolveFeaturePrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be nullpublic static PrototypeBinding resolvePrototype(Prototype proto, InstanceObject context, java.util.HashMap<InstanceObject,InstanceUtil.InstantiatedClassifier> classifierCache)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
subcomponent instanceclassifierCache
- an optional cache of known instantiated
classifiers, may be null