|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.aadl2.operations.ElementOperations
edu.cmu.sei.aadl.aadl2.operations.NamedElementOperations
edu.cmu.sei.aadl.aadl2.operations.NamespaceOperations
edu.cmu.sei.aadl.aadl2.operations.ClassifierOperations
public class ClassifierOperations
A static utility class that provides operations related to 'Classifier' model objects.
The following operations are supported:
No cycles in generalization
Specialize type
All Features
Inherited Member
Parents
All Parents
Inheritable Members
Has Visibility Of
Inherit
May Specialize Type
Field Summary | |
---|---|
protected static java.lang.String |
ALL_FEATURES__EOCL_EXP
The cached OCL expression body for the ' All Features ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
ALL_FEATURES__EOCL_QRY
The cached OCL query for the ' All Features ' query operation |
protected static java.lang.String |
ALL_PARENTS__EOCL_EXP
The cached OCL expression body for the ' All Parents ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
ALL_PARENTS__EOCL_QRY
The cached OCL query for the ' All Parents ' query operation |
protected static java.lang.String |
HAS_VISIBILITY_OF__NAMED_ELEMENT__EOCL_EXP
The cached OCL expression body for the ' Has Visibility Of ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
HAS_VISIBILITY_OF__NAMED_ELEMENT__EOCL_QRY
The cached OCL query for the ' Has Visibility Of ' query operation |
protected static java.lang.String |
INHERIT__ELIST__EOCL_EXP
The cached OCL expression body for the ' Inherit ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
INHERIT__ELIST__EOCL_QRY
The cached OCL query for the ' Inherit ' query operation |
protected static java.lang.String |
INHERITABLE_MEMBERS__CLASSIFIER__EOCL_EXP
The cached OCL expression body for the ' Inheritable Members ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
INHERITABLE_MEMBERS__CLASSIFIER__EOCL_QRY
The cached OCL query for the ' Inheritable Members ' query operation |
protected static java.lang.String |
INHERITED_MEMBER__EOCL_EXP
The cached OCL expression body for the ' Inherited Member ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
INHERITED_MEMBER__EOCL_QRY
The cached OCL query for the ' Inherited Member ' query operation |
protected static java.lang.String |
MAY_SPECIALIZE_TYPE__CLASSIFIER__EOCL_EXP
The cached OCL expression body for the ' May Specialize Type ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
MAY_SPECIALIZE_TYPE__CLASSIFIER__EOCL_QRY
The cached OCL query for the ' May Specialize Type ' query operation |
protected static java.lang.String |
NO_CYCLES_IN_GENERALIZATION__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
The cached OCL expression body for the ' No cycles in generalization ' operation |
protected static org.eclipse.ocl.ecore.Constraint |
NO_CYCLES_IN_GENERALIZATION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
The cached OCL invariant for the ' No cycles in generalization ' invariant operation |
protected static java.lang.String |
PARENTS__EOCL_EXP
The cached OCL expression body for the ' Parents ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
PARENTS__EOCL_QRY
The cached OCL query for the ' Parents ' query operation |
protected static java.lang.String |
SPECIALIZE_TYPE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
The cached OCL expression body for the ' Specialize type ' operation |
protected static org.eclipse.ocl.ecore.Constraint |
SPECIALIZE_TYPE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
The cached OCL invariant for the ' Specialize type ' invariant operation |
Fields inherited from class edu.cmu.sei.aadl.aadl2.operations.NamespaceOperations |
---|
GET_NAMES_OF_MEMBER__NAMED_ELEMENT__EOCL_EXP, GET_NAMES_OF_MEMBER__NAMED_ELEMENT__EOCL_QRY, MEMBERS_ARE_DISTINGUISHABLE__EOCL_EXP, MEMBERS_ARE_DISTINGUISHABLE__EOCL_QRY, MEMBERS_DISTINGUISHABLE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP, MEMBERS_DISTINGUISHABLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV |
Fields inherited from class edu.cmu.sei.aadl.aadl2.operations.ElementOperations |
---|
ALL_OWNED_ELEMENTS__EOCL_EXP, ALL_OWNED_ELEMENTS__EOCL_QRY, EOCL_ENV, HAS_OWNER__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP, HAS_OWNER__DIAGNOSTIC_CHAIN_MAP__EOCL_INV, MUST_BE_OWNED__EOCL_EXP, MUST_BE_OWNED__EOCL_QRY, NOT_OWN_SELF__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP, NOT_OWN_SELF__DIAGNOSTIC_CHAIN_MAP__EOCL_INV |
Constructor Summary | |
---|---|
protected |
ClassifierOperations()
|
Method Summary | |
---|---|
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. |
Methods inherited from class edu.cmu.sei.aadl.aadl2.operations.NamespaceOperations |
---|
getNamesOfMember, members_distinguishable, membersAreDistinguishable |
Methods inherited from class edu.cmu.sei.aadl.aadl2.operations.NamedElementOperations |
---|
allNamespaces, has_no_qualified_name, has_qualified_name, isDistinguishableFrom, qualifiedName, separator |
Methods inherited from class edu.cmu.sei.aadl.aadl2.operations.ElementOperations |
---|
allOwnedElements, has_owner, mustBeOwned, not_own_self |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String NO_CYCLES_IN_GENERALIZATION__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
No cycles in generalization
' operation.
no_cycles_in_generalization(Classifier, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
,
Constant Field Valuesprotected static org.eclipse.ocl.ecore.Constraint NO_CYCLES_IN_GENERALIZATION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
No cycles in generalization
' invariant operation.
no_cycles_in_generalization(Classifier, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
protected static final java.lang.String SPECIALIZE_TYPE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
Specialize type
' operation.
specialize_type(Classifier, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
,
Constant Field Valuesprotected static org.eclipse.ocl.ecore.Constraint SPECIALIZE_TYPE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
Specialize type
' invariant operation.
specialize_type(Classifier, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
protected static final java.lang.String ALL_FEATURES__EOCL_EXP
All Features
' operation.
allFeatures(Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> ALL_FEATURES__EOCL_QRY
All Features
' query operation.
allFeatures(Classifier)
protected static final java.lang.String INHERITED_MEMBER__EOCL_EXP
Inherited Member
' operation.
inheritedMember(Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> INHERITED_MEMBER__EOCL_QRY
Inherited Member
' query operation.
inheritedMember(Classifier)
protected static final java.lang.String PARENTS__EOCL_EXP
Parents
' operation.
parents(Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> PARENTS__EOCL_QRY
Parents
' query operation.
parents(Classifier)
protected static final java.lang.String ALL_PARENTS__EOCL_EXP
All Parents
' operation.
allParents(Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> ALL_PARENTS__EOCL_QRY
All Parents
' query operation.
allParents(Classifier)
protected static final java.lang.String INHERITABLE_MEMBERS__CLASSIFIER__EOCL_EXP
Inheritable Members
' operation.
inheritableMembers(Classifier, edu.cmu.sei.aadl.aadl2.Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> INHERITABLE_MEMBERS__CLASSIFIER__EOCL_QRY
Inheritable Members
' query operation.
inheritableMembers(Classifier, edu.cmu.sei.aadl.aadl2.Classifier)
protected static final java.lang.String HAS_VISIBILITY_OF__NAMED_ELEMENT__EOCL_EXP
Has Visibility Of
' operation.
hasVisibilityOf(Classifier, edu.cmu.sei.aadl.aadl2.NamedElement)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> HAS_VISIBILITY_OF__NAMED_ELEMENT__EOCL_QRY
Has Visibility Of
' query operation.
hasVisibilityOf(Classifier, edu.cmu.sei.aadl.aadl2.NamedElement)
protected static final java.lang.String INHERIT__ELIST__EOCL_EXP
Inherit
' operation.
inherit(Classifier, org.eclipse.emf.common.util.EList)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> INHERIT__ELIST__EOCL_QRY
Inherit
' query operation.
inherit(Classifier, org.eclipse.emf.common.util.EList)
protected static final java.lang.String MAY_SPECIALIZE_TYPE__CLASSIFIER__EOCL_EXP
May Specialize Type
' operation.
maySpecializeType(Classifier, edu.cmu.sei.aadl.aadl2.Classifier)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> MAY_SPECIALIZE_TYPE__CLASSIFIER__EOCL_QRY
May Specialize Type
' query operation.
maySpecializeType(Classifier, edu.cmu.sei.aadl.aadl2.Classifier)
Constructor Detail |
---|
protected ClassifierOperations()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |