Class Containment
java.lang.Object
- All Implemented Interfaces:
IKeyed<Containment>
,INamed
,NamespacedEntity
,ClassifierInstance<Concept>
,HasFeatureValues
,Node
Represents a relation between a containing
Classifier
and a contained Classifier
.
Between an IfStatement and its condition there is a Containment relation.
Differently from an EReference there is no container flag and resolveProxies flag.
- See Also:
-
Ecore equivalent EReference (with the
containment
flag set totrue
)- MPS equivalent Child in documentation
- MPS
equivalent LinkDeclaration in local MPS (with
metaClass
having valueaggregation
) MPS equivalent SContainmentLink in SModel
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
ConstructorsConstructorDescriptionContainment
(LionWebVersion lionWebVersion) Containment
(LionWebVersion lionWebVersion, String name) Containment
(LionWebVersion lionWebVersion, String name, String id) Containment
(String name) Containment
(String name, Classifier container) Containment
(String name, String id) -
Method Summary
Modifier and TypeMethodDescriptionstatic Containment
createMultiple
(LionWebVersion lionWebVersion, String name, Classifier type) static Containment
createMultiple
(LionWebVersion lionWebVersion, String name, Classifier type, String id) static Containment
createMultiple
(String name, Classifier type) static Containment
createMultiple
(String name, Classifier type, String id) static Containment
createMultipleAndRequired
(String name, Classifier type) static Containment
createOptional
(String name, Classifier type) static Containment
createOptional
(String name, Classifier type, String id) static Containment
createOptional
(String name, Classifier type, String id, String key) static Containment
createRequired
(String name, Classifier type) The concept of which this Node is an instance.Methods inherited from class io.lionweb.lioncore.java.language.Link
getType, isMultiple, isSingle, setMultiple, setType, toString
Methods inherited from class io.lionweb.lioncore.java.language.Feature
getContainer, getDeclaringLanguage, getKey, getName, isOptional, isRequired, setKey, setName, setOptional
Methods inherited from class io.lionweb.lioncore.java.model.impl.M3Node
addChild, addContainmentMultipleValue, addReferenceMultipleValue, addReferenceValue, equals, getChildren, getContainmentFeature, getContainmentMultipleValue, getContainmentSingleValue, getID, getLionWebVersion, getParent, getPropertyValue, getPropertyValue, getPropertyValue, getReferenceMultipleValue, getReferenceSingleValue, getReferenceValues, getRoot, hashCode, removeChild, setID, setParent, setPropertyValue, setPropertyValue, setReferenceSingleValue, setReferenceValues
Methods inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation, removeChild, removeReferenceValue, removeReferenceValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.lionweb.lioncore.java.model.ClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation
Methods inherited from interface io.lionweb.lioncore.java.model.HasFeatureValues
removeChild, removeReferenceValue, removeReferenceValue
Methods inherited from interface io.lionweb.lioncore.java.language.NamespacedEntity
qualifiedName
Methods inherited from interface io.lionweb.lioncore.java.model.Node
isRoot, thisAndAllDescendants
-
Constructor Details
-
Containment
public Containment() -
Containment
-
Containment
-
Containment
-
Containment
-
Containment
-
Containment
-
-
Method Details
-
createOptional
-
createOptional
public static Containment createOptional(@Nullable String name, @Nullable Classifier type, @Nullable String id, @Nullable String key) -
createOptional
public static Containment createOptional(@Nullable String name, @Nullable Classifier type, @Nullable String id) -
createRequired
-
createMultiple
public static Containment createMultiple(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier type) -
createMultiple
-
createMultiple
public static Containment createMultiple(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createMultiple
public static Containment createMultiple(@Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createMultipleAndRequired
public static Containment createMultipleAndRequired(@Nullable String name, @Nullable Classifier type) -
getClassifier
Description copied from interface:Node
The concept of which this Node is an instance. The Concept should not be abstract.
-