|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Classifier
A representation of the model object 'Classifier'. A classifier is a classification of instances - it describes a set of instances that have features in common. A classifier can specify a generalization hierarchy by referencing its general classifiers.
The following features are supported:
Classifier Feature
Inherited Member
Generalization
General
Owned Annex Subclause
Owned Prototype
Owned Prototype Binding
No Prototypes
No Annexes
No Properties
Aadl2Package.getClassifier()
Field Summary |
---|
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject |
---|
copyright |
Method Summary | |
---|---|
org.eclipse.emf.common.util.EList<ClassifierFeature> |
allFeatures()
The query allFeatures() gives all of the features in the namespace of the classifier. |
org.eclipse.emf.common.util.EList<Classifier> |
allParents()
The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier. |
boolean |
checkAppliesToClassifier(Property property)
Check whether the applies to classifiers in a property definition describe this classifier. |
AnnexSubclause |
createOwnedAnnexSubclause()
Creates a new DefaultAnnexSubclause and appends it to the 'Owned Annex Subclause' containment reference list |
AnnexSubclause |
createOwnedAnnexSubclause(org.eclipse.emf.ecore.EClass eClass)
Creates a new AnnexSubclause and appends it to the 'Owned Annex Subclause' containment reference list |
Prototype |
createOwnedPrototype(org.eclipse.emf.ecore.EClass eClass)
Creates a new Prototype and appends it to the 'Owned Prototype' containment reference list |
PrototypeBinding |
createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass)
Creates a new PrototypeBinding and appends it to the 'Owned Prototype Binding' containment reference list |
org.eclipse.emf.common.util.EList<Classifier> |
getAllExtendPlusSelf()
Return a list of classifiers extended by this classifier including itself. |
org.eclipse.emf.common.util.EList<Feature> |
getAllFeatures()
get all features including inherited features |
org.eclipse.emf.common.util.EList<PropertyAssociation> |
getAllPropertyAssociations()
Get all the property associations, including those from any ancestor classifiers. |
org.eclipse.emf.common.util.EList<ClassifierFeature> |
getClassifierFeatures()
Returns the value of the 'Classifier Feature' reference list. |
Classifier |
getExtended()
returns the reference to the classifier being extended |
org.eclipse.emf.common.util.EList<Generalization> |
getGeneralizations()
Returns the value of the 'Generalization' containment reference list. |
org.eclipse.emf.common.util.EList<Classifier> |
getGenerals()
Returns the value of the 'General' reference list. |
org.eclipse.emf.common.util.EList<NamedElement> |
getInheritedMembers()
Returns the value of the 'Inherited Member' reference list. |
org.eclipse.emf.common.util.EList<AnnexSubclause> |
getOwnedAnnexSubclauses()
Returns the value of the 'Owned Annex Subclause' containment reference list. |
org.eclipse.emf.common.util.EList<PrototypeBinding> |
getOwnedPrototypeBindings()
Returns the value of the 'Owned Prototype Binding' containment reference list. |
org.eclipse.emf.common.util.EList<Prototype> |
getOwnedPrototypes()
Returns the value of the 'Owned Prototype' containment reference list. |
boolean |
hasVisibilityOf(NamedElement n)
The query hasVisibilityOf() determines whether a named element is visible in the classifier. |
org.eclipse.emf.common.util.EList<NamedElement> |
inherit(org.eclipse.emf.common.util.EList<NamedElement> inhs)
The query inherit() defines how to inherit a set of elements. |
org.eclipse.emf.common.util.EList<NamedElement> |
inheritableMembers(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. |
org.eclipse.emf.common.util.EList<NamedElement> |
inheritedMember()
The inheritedMember association is derived by inheriting the inheritable members of the parents. |
boolean |
isDescendentOf(Classifier c)
Does this component classifier descend from the given classifier? |
boolean |
isNoAnnexes()
Returns the value of the 'No Annexes' attribute |
boolean |
isNoProperties()
Returns the value of the 'No Properties' attribute |
boolean |
isNoPrototypes()
Returns the value of the 'No Prototypes' attribute |
PrototypeBinding |
lookupPrototypeBinding(Prototype proto)
|
boolean |
maySpecializeType(Classifier c)
The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. |
boolean |
no_cycles_in_generalization(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Generalization hierarchies must be directed and acyclical. |
org.eclipse.emf.common.util.EList<Classifier> |
parents()
The query parents() gives all of the immediate ancestors of a generalized Classifier. |
void |
setNoAnnexes(boolean value)
Sets the value of the ' No Annexes ' attribute |
void |
setNoProperties(boolean value)
Sets the value of the ' No Properties ' attribute |
void |
setNoPrototypes(boolean value)
Sets the value of the ' No Prototypes ' attribute |
boolean |
specialize_type(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 interface edu.cmu.sei.aadl.aadl2.Namespace |
---|
findNamedElement, getMembers, getNamesOfMember, getOwnedMembers, members_distinguishable, membersAreDistinguishable |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Type |
---|
conformsTo |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element |
---|
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject |
---|
getLocationReference, setLocationReference, setLocationReference |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
org.eclipse.emf.common.util.EList<ClassifierFeature> getClassifierFeatures()
ClassifierFeature
.
It is bidirectional and its opposite is 'Featuring Classifier
'.
This feature subsets the following features:
Member
'
Aadl2Package.getClassifier_ClassifierFeature()
,
ClassifierFeature.getFeaturingClassifiers()
org.eclipse.emf.common.util.EList<NamedElement> getInheritedMembers()
NamedElement
.
This feature subsets the following features:
Member
'
Aadl2Package.getClassifier_InheritedMember()
org.eclipse.emf.common.util.EList<Generalization> getGeneralizations()
Generalization
.
It is bidirectional and its opposite is 'Specific
'.
This feature subsets the following features:
This feature is a derived union. Specifies the Generalization relationships for this Classifier. These Generalizations navigate to more general classifiers in the generalization hierarchy.
Aadl2Package.getClassifier_Generalization()
,
Generalization.getSpecific()
org.eclipse.emf.common.util.EList<Classifier> getGenerals()
Classifier
.
This feature is a derived union.
Specifies the more general classifiers in the generalization hierarchy for this Classifier.
Aadl2Package.getClassifier_General()
org.eclipse.emf.common.util.EList<Prototype> getOwnedPrototypes()
Prototype
.
This feature subsets the following features:
If the meaning of the 'Owned Prototype' containment reference list isn't clear, there really should be more of a description here...
Aadl2Package.getClassifier_OwnedPrototype()
Prototype createOwnedPrototype(org.eclipse.emf.ecore.EClass eClass)
Prototype
and appends it to the 'Owned Prototype' containment reference list.
eClass
- The Ecore class of the Prototype
to create.
Prototype
.getOwnedPrototypes()
org.eclipse.emf.common.util.EList<PrototypeBinding> getOwnedPrototypeBindings()
PrototypeBinding
.
If the meaning of the 'Owned Prototype Binding' containment reference list isn't clear, there really should be more of a description here...
Aadl2Package.getClassifier_OwnedPrototypeBinding()
PrototypeBinding createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass)
PrototypeBinding
and appends it to the 'Owned Prototype Binding' containment reference list.
eClass
- The Ecore class of the PrototypeBinding
to create.
PrototypeBinding
.getOwnedPrototypeBindings()
org.eclipse.emf.common.util.EList<AnnexSubclause> getOwnedAnnexSubclauses()
AnnexSubclause
.
This feature subsets the following features:
If the meaning of the 'Owned Annex Subclause' containment reference list isn't clear, there really should be more of a description here...
Aadl2Package.getClassifier_OwnedAnnexSubclause()
AnnexSubclause createOwnedAnnexSubclause(org.eclipse.emf.ecore.EClass eClass)
AnnexSubclause
and appends it to the 'Owned Annex Subclause' containment reference list.
eClass
- The Ecore class of the AnnexSubclause
to create.
AnnexSubclause
.getOwnedAnnexSubclauses()
AnnexSubclause createOwnedAnnexSubclause()
DefaultAnnexSubclause
and appends it to the 'Owned Annex Subclause' containment reference list.
DefaultAnnexSubclause
.getOwnedAnnexSubclauses()
boolean isNoProperties()
If the meaning of the 'No Properties' attribute isn't clear, there really should be more of a description here...
setNoProperties(boolean)
,
Aadl2Package.getClassifier_NoProperties()
void setNoProperties(boolean value)
No Properties
' attribute.
value
- the new value of the 'No Properties' attribute.isNoProperties()
boolean isNoPrototypes()
If the meaning of the 'No Prototypes' attribute isn't clear, there really should be more of a description here...
setNoPrototypes(boolean)
,
Aadl2Package.getClassifier_NoPrototypes()
void setNoPrototypes(boolean value)
No Prototypes
' attribute.
value
- the new value of the 'No Prototypes' attribute.isNoPrototypes()
boolean isNoAnnexes()
If the meaning of the 'No Annexes' attribute isn't clear, there really should be more of a description here...
setNoAnnexes(boolean)
,
Aadl2Package.getClassifier_NoAnnexes()
void setNoAnnexes(boolean value)
No Annexes
' attribute.
value
- the new value of the 'No Annexes' attribute.isNoAnnexes()
boolean no_cycles_in_generalization(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean specialize_type(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
org.eclipse.emf.common.util.EList<ClassifierFeature> allFeatures()
org.eclipse.emf.common.util.EList<NamedElement> inheritedMember()
org.eclipse.emf.common.util.EList<Classifier> parents()
org.eclipse.emf.common.util.EList<Classifier> allParents()
org.eclipse.emf.common.util.EList<NamedElement> inheritableMembers(Classifier c)
boolean hasVisibilityOf(NamedElement n)
org.eclipse.emf.common.util.EList<NamedElement> inherit(org.eclipse.emf.common.util.EList<NamedElement> inhs)
boolean maySpecializeType(Classifier c)
org.eclipse.emf.common.util.EList<Classifier> getAllExtendPlusSelf()
C
extends
classifier B
that extends classifier A
,
then the list will contain classifiers C
, B
, and A
in that order.
Although a well-formed model should not contain loops in the extension hierarchy, they may arise from erroneous editors or through badly formed AAXL files. This method is safe to use even if a cycle exists. In such a case, the returned list will contain all the classifiers up to but not including the cyclic reference. So if the cycle is A extends B extends C extends D extends A, and the method is invoked on classifier C, then the returned list will be [C, D, A, B].
Classifier getExtended()
org.eclipse.emf.common.util.EList<Feature> getAllFeatures()
boolean isDescendentOf(Classifier c)
boolean checkAppliesToClassifier(Property property)
property
- The property definition
org.eclipse.emf.common.util.EList<PropertyAssociation> getAllPropertyAssociations()
PrototypeBinding lookupPrototypeBinding(Prototype proto)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |