Class Reference
java.lang.Object
- All Implemented Interfaces:
IKeyed<Reference>
,INamed
,NamespacedEntity
,ClassifierInstance<Concept>
,HasFeatureValues
,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 the
containment
flag set tofalse
)- MPS equivalent Reference in documentation
- MPS
equivalent LinkDeclaration in local MPS (with
metaClass
having valuereference
) MPS equivalent SReferenceLink in SModel
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.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 Reference
createMultiple
(LionWebVersion lionWebVersion, String name, Classifier<?> type) static Reference
createMultiple
(LionWebVersion lionWebVersion, String name, Classifier type, String id) static Reference
createMultiple
(String name, Classifier<?> type) static Reference
createMultiple
(String name, Classifier type, String id) static Reference
createMultipleAndRequired
(String name, Classifier type) static Reference
createOptional
(LionWebVersion lionWebVersion, String name, Classifier type, String id) static Reference
createOptional
(String name, Classifier type) static Reference
createOptional
(String name, Classifier type, String id) static Reference
createRequired
(LionWebVersion lionWebVersion, String name, Classifier<?> type) static Reference
createRequired
(LionWebVersion lionWebVersion, String name, Classifier<?> type, String id) static Reference
createRequired
(String name, Classifier<?> type) static Reference
createRequired
(String name, Classifier<?> type, String id) 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
-
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:Node
The concept of which this Node is an instance. The Concept should not be abstract.
-