public class ResolvePrototypeUtil
extends java.lang.Object
Constructor and Description |
---|
ResolvePrototypeUtil() |
Modifier and Type | Method and Description |
---|---|
static ContainmentPathElement |
getPrevious(ContainmentPathElement cpe) |
static ComponentClassifier |
resolveComponentPrototype(Prototype proto,
Element context)
Find the binding for a given component prototype.
|
static FeatureGroupType |
resolveFeatureGroupPrototype(Prototype proto,
Element context)
Find the binding for a given feature group prototype.
|
static Feature |
resolveFeaturePrototype(Prototype proto,
Element context)
Find the binding for a given feature prototype.
|
static PrototypeBinding |
resolvePrototype(Prototype proto,
Element context)
Find the binding for a given prototype.
|
static PrototypeBinding |
resolvePrototypeInContainmentPath(Prototype proto,
ContainmentPathElement cpe) |
public static ComponentClassifier resolveComponentPrototype(Prototype proto, Element context)
proto
- the prototype to resolvecontext
- the context of the feature or subcomponent in which the prototype is used, e.g., a
ComponentType, FeatureGroupType, ComponentImplementationpublic static FeatureGroupType resolveFeatureGroupPrototype(Prototype proto, Element context)
proto
- the prototype to resolvecontext
- the context of the feature group in which the prototype is used, e.g., a
ComponentType, FeatureGroupType, ContainmentPathElementpublic static Feature resolveFeaturePrototype(Prototype proto, Element context)
proto
- the prototype to resolvecontext
- the context in which the prototype is used, e.g., a
ComponentType, FeatureGroupTypepublic static PrototypeBinding resolvePrototype(Prototype proto, Element context)
proto
- the prototype to resolvecontext
- the context of the entity in which the prototype is used, e.g., a
ComponentType, ComponentImplementation, FeatureGroupType, Subcomponentpublic static ContainmentPathElement getPrevious(ContainmentPathElement cpe)
public static PrototypeBinding resolvePrototypeInContainmentPath(Prototype proto, ContainmentPathElement cpe)