Package io.lionweb.language
Class Reference
java.lang.Object
- All Implemented Interfaces:
IKeyed<Reference>,INamed,NamespacedEntity,ClassifierInstance<Concept>,HasFeatureValues,HasSettableParent,Node
This represents a relation between an
Classifier and referred Classifier.
A VariableReference may have a Reference to a VariableDeclaration.
- See Also:
-
Ecore equivalent EReference (with thecontainmentflag set tofalse)- MPS equivalent Reference in documentation
- MPS
equivalent LinkDeclaration in local MPS (with
metaClasshaving valuereference) MPS equivalent SReferenceLink in SModel
-
Field Summary
Fields inherited from class io.lionweb.model.impl.AbstractClassifierInstance
annotations -
Constructor Summary
ConstructorsConstructorDescriptionReference(LionWebVersion lionWebVersion) Reference(LionWebVersion lionWebVersion, String name) Reference(LionWebVersion lionWebVersion, String name, String id) Reference(String name, Classifier container) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferencecreateMultiple(LionWebVersion lionWebVersion, String name, Classifier<?> type) static ReferencecreateMultiple(LionWebVersion lionWebVersion, String name, Classifier type, String id) static ReferencecreateMultiple(String name, Classifier<?> type) static ReferencecreateMultiple(String name, Classifier type, String id) static ReferencecreateMultipleAndRequired(String name, Classifier type) static ReferencecreateOptional(LionWebVersion lionWebVersion, String name, Classifier type, String id) static ReferencecreateOptional(String name, Classifier type) static ReferencecreateOptional(String name, Classifier type, String id) static ReferencecreateRequired(LionWebVersion lionWebVersion, String name, Classifier<?> type) static ReferencecreateRequired(LionWebVersion lionWebVersion, String name, Classifier<?> type, String id) static ReferencecreateRequired(String name, Classifier<?> type) static ReferencecreateRequired(String name, Classifier<?> type, String id) 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
-
Reference
public Reference() -
Reference
-
Reference
-
Reference
-
Reference
-
Reference
-
Reference
-
-
Method Details
-
createOptional
-
createOptional
public static Reference createOptional(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createOptional
public static Reference createOptional(@Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createRequired
public static Reference createRequired(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier<?> type) -
createRequired
-
createRequired
public static Reference createRequired(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier<?> type, @Nonnull String id) -
createRequired
public static Reference createRequired(@Nullable String name, @Nullable Classifier<?> type, @Nonnull String id) -
createMultiple
public static Reference createMultiple(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier<?> type) -
createMultiple
-
createMultiple
public static Reference createMultiple(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createMultiple
public static Reference createMultiple(@Nullable String name, @Nullable Classifier type, @Nonnull String id) -
createMultipleAndRequired
-
getClassifier
Description copied from interface:NodeThe concept of which this Node is an instance. The Concept should not be abstract.
-