Package io.lionweb.language
Class Property
java.lang.Object
- All Implemented Interfaces:
IKeyed<Property>,INamed,NamespacedEntity,ClassifierInstance<Concept>,HasFeatureValues,HasSettableParent,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.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 PropertycreateOptional(LionWebVersion lionWebVersion, String name, DataType<?> type) static PropertycreateOptional(String name, DataType<?> type) static PropertycreateOptional(String name, DataType type, String id) static PropertycreateRequired(LionWebVersion lionWebVersion, String name, DataType<?> type) static PropertycreateRequired(LionWebVersion lionWebVersion, String name, DataType type, String id) static PropertycreateRequired(String name, DataType<?> type) static PropertycreateRequired(String name, DataType type, String id) The concept of which this Node is an instance.getType()toString()Methods 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
-
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:NodeThe concept of which this Node is an instance. The Concept should not be abstract.
-