Class Property
java.lang.Object
- All Implemented Interfaces:
IKeyed<Property>
,INamed
,NamespacedEntity
,ClassifierInstance<Concept>
,HasFeatureValues
,Node
This indicates a simple value associated to an entity.
For example, an Invoice could have a date or an amount.
- See Also:
-
Ecore equivalent EAttribute
- MPS equivalent Property in documentation
- MPS equivalent PropertyDeclaration in local MPS
MPS equivalent SProperty in SModel
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
ConstructorsConstructorDescriptionProperty()
Property
(LionWebVersion lionWebVersion) Property
(LionWebVersion lionWebVersion, String name, Classifier<?> container) Property
(LionWebVersion lionWebVersion, String name, Classifier<?> container, String id) Property
(String name, Classifier<?> container) Property
(String name, Classifier<?> container, String id) -
Method Summary
Modifier and TypeMethodDescriptionstatic Property
createOptional
(LionWebVersion lionWebVersion, String name, DataType<?> type) static Property
createOptional
(String name, DataType<?> type) static Property
createOptional
(String name, DataType type, String id) static Property
createRequired
(LionWebVersion lionWebVersion, String name, DataType<?> type) static Property
createRequired
(LionWebVersion lionWebVersion, String name, DataType type, String id) static Property
createRequired
(String name, DataType<?> type) static Property
createRequired
(String name, DataType type, String id) The concept of which this Node is an instance.getType()
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
-
Property
public Property() -
Property
public Property(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier<?> container, @Nonnull String id) -
Property
-
Property
-
Property
public Property(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable Classifier<?> container) -
Property
-
-
Method Details
-
createOptional
public static Property createOptional(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable DataType<?> type) -
createOptional
-
createRequired
public static Property createRequired(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable DataType<?> type) -
createRequired
-
createOptional
-
createRequired
public static Property createRequired(@Nonnull LionWebVersion lionWebVersion, @Nullable String name, @Nullable DataType type, @Nonnull String id) -
createRequired
-
getType
-
setType
-
toString
-
getClassifier
Description copied from interface:Node
The concept of which this Node is an instance. The Concept should not be abstract.
-