public class ClassifierOperations extends NamespaceOperations
The following operations are supported:
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.EList<ClassifierFeature> |
allFeatures(Classifier classifier)
The query allFeatures() gives all of the features in the namespace of the classifier.
|
static org.eclipse.emf.common.util.EList<Classifier> |
allParents(Classifier classifier)
The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.
|
static boolean |
hasVisibilityOf(Classifier classifier,
NamedElement n)
The query hasVisibilityOf() determines whether a named element is visible in the classifier.
|
static org.eclipse.emf.common.util.EList<NamedElement> |
inherit(Classifier classifier,
org.eclipse.emf.common.util.EList<NamedElement> inhs)
The query inherit() defines how to inherit a set of elements.
|
static org.eclipse.emf.common.util.EList<NamedElement> |
inheritableMembers(Classifier classifier,
Classifier c)
The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.
|
static org.eclipse.emf.common.util.EList<NamedElement> |
inheritedMember(Classifier classifier)
The inheritedMember association is derived by inheriting the inheritable members of the parents.
|
static boolean |
maySpecializeType(Classifier classifier,
Classifier c)
The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type.
|
static boolean |
no_cycles_in_generalization(Classifier classifier,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Generalization hierarchies must be directed and acyclical.
|
static org.eclipse.emf.common.util.EList<Classifier> |
parents(Classifier classifier)
The query parents() gives all of the immediate ancestors of a generalized Classifier.
|
static boolean |
specialize_type(Classifier classifier,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A classifier may only specialize classifiers of a valid type.
|
getNamesOfMember, members_distinguishable, membersAreDistinguishable
allNamespaces, getNamespace, has_no_qualified_name, has_qualified_name, isDistinguishableFrom, qualifiedName, separator
allOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
public static boolean no_cycles_in_generalization(Classifier classifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
classifier
- The receiving 'Classifier' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static boolean specialize_type(Classifier classifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
classifier
- The receiving 'Classifier' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static org.eclipse.emf.common.util.EList<ClassifierFeature> allFeatures(Classifier classifier)
classifier
- The receiving 'Classifier' model object.
public static org.eclipse.emf.common.util.EList<NamedElement> inheritedMember(Classifier classifier)
classifier
- The receiving 'Classifier' model object.
public static org.eclipse.emf.common.util.EList<Classifier> parents(Classifier classifier)
classifier
- The receiving 'Classifier' model object.
public static org.eclipse.emf.common.util.EList<Classifier> allParents(Classifier classifier)
classifier
- The receiving 'Classifier' model object.
public static org.eclipse.emf.common.util.EList<NamedElement> inheritableMembers(Classifier classifier, Classifier c)
classifier
- The receiving 'Classifier' model object.
public static boolean hasVisibilityOf(Classifier classifier, NamedElement n)
classifier
- The receiving 'Classifier' model object.
public static org.eclipse.emf.common.util.EList<NamedElement> inherit(Classifier classifier, org.eclipse.emf.common.util.EList<NamedElement> inhs)
classifier
- The receiving 'Classifier' model object.
public static boolean maySpecializeType(Classifier classifier, Classifier c)
classifier
- The receiving 'Classifier' model object.