Class Language
- All Implemented Interfaces:
IKeyed<Language>
,INamed
,NamespaceProvider
,ClassifierInstance<Concept>
,HasFeatureValues
,Node
- Direct Known Subclasses:
LionCoreBuiltins
A Language will provide the
Concept
s necessary to describe data in a particular domain
together with supporting elements necessary for the definition of those Concepts.
It also represents the namespace within which Concepts and other supporting elements are
organized. For example, a Language for accounting could collect several Concepts such as Invoice,
Customer, InvoiceLine, Product. It could also contain related elements necessary for the
definitions of the concepts. For example, a DataType
named Currency.
- See Also:
-
Ecore equivalent EPackage
- MPS equivalent Language's structure aspect in documentation
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDependency
(Language dependency) <T extends LanguageEntity>
TaddElement
(T element) The concept of which this Node is an instance.getConceptByName
(String name) getElementByName
(String name) getEnumerationByName
(String name) getInterfaceByName
(String name) getKey()
getName()
getPrimitiveTypeByName
(String name) boolean
isValid()
requireConceptByName
(String name) setVersion
(String version) toString()
validate()
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.model.Node
isRoot, thisAndAllDescendants
-
Constructor Details
-
Language
-
Language
public Language() -
Language
-
Language
-
Language
-
Language
-
Language
-
-
Method Details
-
setName
-
setVersion
-
setKey
-
namespaceQualifier
- Specified by:
namespaceQualifier
in interfaceNamespaceProvider
-
dependsOn
-
getElements
-
addDependency
-
addElement
-
getConceptByName
-
getEnumerationByName
-
requireConceptByName
-
getInterfaceByName
-
getName
-
getKey
-
getVersion
-
getElementByName
-
getPrimitiveTypeByName
-
getClassifier
Description copied from interface:Node
The concept of which this Node is an instance. The Concept should not be abstract.- Specified by:
getClassifier
in interfaceClassifierInstance<Concept>
- Specified by:
getClassifier
in interfaceNode
-
toString
-
getPrimitiveTypes
-
isValid
public boolean isValid() -
validate
-
getStructuredDataTypes
-