Package io.lionweb.language
Class Containment
java.lang.Object
- All Implemented Interfaces:
IKeyed<Containment>,INamed,NamespacedEntity,ClassifierInstance<Concept>,HasFeatureValues,HasSettableParent,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 thecontainmentflag set totrue)- MPS equivalent Child in documentation
- MPS
equivalent LinkDeclaration in local MPS (with
metaClasshaving valueaggregation) MPS equivalent SContainmentLink in SModel
-
Field Summary
Fields inherited from class io.lionweb.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 ContainmentcreateMultiple(LionWebVersion lionWebVersion, String name, Classifier type) static ContainmentcreateMultiple(LionWebVersion lionWebVersion, String name, Classifier type, String id) static ContainmentcreateMultiple(String name, Classifier type) static ContainmentcreateMultiple(String name, Classifier type, String id) static ContainmentcreateMultipleAndRequired(String name, Classifier type) static ContainmentcreateOptional(String name, Classifier type) static ContainmentcreateOptional(String name, Classifier type, String id) static ContainmentcreateOptional(String name, Classifier type, String id, String key) static ContainmentcreateRequired(String name, Classifier type) The concept of which this Node is an instance.Methods inherited from class io.lionweb.language.Link
getType, isMultiple, isSingle, setMultiple, setType, toStringMethods inherited from class io.lionweb.language.Feature
getContainer, getDeclaringLanguage, getKey, getName, isOptional, isRequired, setKey, setName, setOptionalMethods inherited from class io.lionweb.model.impl.M3Node
addChild, addContainmentMultipleValue, addReferenceMultipleValue, addReferenceValue, equals, getChildren, getContainmentMultipleValue, getContainmentSingleValue, getID, getLionWebVersion, getParent, getPropertyValue, getPropertyValue, getPropertyValue, getReferenceMultipleValue, getReferenceSingleValue, getReferenceValues, hashCode, removeChild, setID, setParent, setPropertyValue, setPropertyValue, setReferenceSingleValue, setReferenceValuesMethods inherited from class io.lionweb.model.impl.AbstractClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation, removeChild, removeReferenceValue, removeReferenceValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.lionweb.model.ClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotationMethods inherited from interface io.lionweb.model.HasFeatureValues
removeChild, removeReferenceValue, removeReferenceValueMethods inherited from interface io.lionweb.language.NamespacedEntity
qualifiedNameMethods inherited from interface io.lionweb.model.Node
getContainmentFeature, getRoot, 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:NodeThe concept of which this Node is an instance. The Concept should not be abstract.
-