Class Classifier<T extends M3Node>
java.lang.Object
io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance<Concept>
io.lionweb.lioncore.java.model.impl.M3Node<T>
io.lionweb.lioncore.java.language.LanguageEntity<T>
io.lionweb.lioncore.java.language.Classifier<T>
- All Implemented Interfaces:
IKeyed<T>
,INamed
,NamespacedEntity
,NamespaceProvider
,ClassifierInstance<Concept>
,HasFeatureValues
,Node
- Direct Known Subclasses:
Annotation
,Concept
,Interface
public abstract class Classifier<T extends M3Node>
extends LanguageEntity<T>
implements NamespaceProvider
This represents a group of elements that shares some characteristics.
For example, Dated and Invoice could be both AbstractConcepts, while having different levels of tightness in the groups.
- See Also:
-
Ecore equivalent EClass (which is used both for classes and interfaces)
- MPS equivalent AbstractConceptDeclaration in local MPS
MPS equivalent SAbstractConcept in SModel
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
ConstructorsConstructorDescriptionClassifier
(Language language, String name) Classifier
(Language language, String name, String id) Classifier
(LionWebVersion lionWebVersion) Classifier
(LionWebVersion lionWebVersion, Language language, String name) -
Method Summary
Modifier and TypeMethodDescriptionaddFeature
(Feature feature) Set<Classifier<?>>
Finds all ancestors.allLinks()
protected void
combineFeatures
(List<Feature<?>> featuresA, List<Feature<?>> featuresB) abstract List<Classifier<?>>
getContainmentByID
(String containmentID) getContainmentByMetaPointer
(MetaPointer metaPointer) getContainmentByName
(String containmentName) getFeatureByName
(String name) getLinkByName
(String linkName) getPropertyByID
(String propertyId) getPropertyByMetaPointer
(MetaPointer metaPointer) getPropertyByName
(String propertyName) getReferenceByID
(String referenceID) getReferenceByMetaPointer
(MetaPointer metaPointer) getReferenceByName
(String referenceName) requireContainmentByName
(String containmentName) requireReferenceByName
(String referenceName) Methods inherited from class io.lionweb.lioncore.java.language.LanguageEntity
getContainer, getKey, getLanguage, getName, setKey, setName, toString
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
getClassifier, isRoot, thisAndAllDescendants
-
Constructor Details
-
Classifier
public Classifier() -
Classifier
-
Classifier
-
Classifier
public Classifier(@Nonnull LionWebVersion lionWebVersion, @Nullable Language language, @Nullable String name) -
Classifier
-
-
Method Details
-
getFeatureByName
-
directAncestors
-
allAncestors
Finds all ancestors. Works even for invalid inheritance hierarchies (i.e. containing loops).- Returns:
- All direct or indirect/transitive ancestors.
-
allFeatures
-
inheritedFeatures
-
allProperties
-
allContainments
-
allReferences
-
allLinks
-
getFeatures
-
addFeature
-
namespaceQualifier
- Specified by:
namespaceQualifier
in interfaceNamespaceProvider
-
getPropertyByID
-
getPropertyByName
-
getContainmentByID
-
getContainmentByName
-
getReferenceByID
-
getReferenceByName
-
requireContainmentByName
-
requireReferenceByName
-
getLinkByName
-
getPropertyByMetaPointer
-
getContainmentByMetaPointer
-
getReferenceByMetaPointer
-
combineFeatures
-