edu.cmu.sei.aadl.model.core.impl
Class ClassifierImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by edu.cmu.sei.aadl.model.core.impl.AObjectImpl
                  extended by edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
                      extended by edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
                          extended by edu.cmu.sei.aadl.model.core.impl.ClassifierImpl
All Implemented Interfaces:
AObject, Classifier, NamedElement, PropertyHolder, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
ComponentClassifierImpl, PortGroupTypeImpl

public abstract class ClassifierImpl
extends PropertyHolderImpl
implements Classifier

An implementation of the model object 'Classifier'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList annexSubclause
          The cached value of the 'Annex Subclause' containment reference list
static java.lang.String copyright
           
protected  ClassifierReference extendedClassifierReference
          hold extended classifier reference
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
properties
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
comment, locationReference
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ClassifierImpl()
           
 
Method Summary
 void addAnnexSubclause(AnnexSubclause newAnnexSubclause)
          phf: add element to multiplicity EList
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 org.eclipse.emf.common.util.EList getAllPropertyAssociation()
          Get all the property associations, including those from any ancestor classifiers.
 org.eclipse.emf.common.util.EList getAnnexSubclause()
           
 ClassifierReference getExtendedClassifierReference()
          Returns the 'Extended classifier reference' attribute.
 java.lang.String getExtendedQualifiedName()
          get qualified name of classifier being extended.
 java.lang.String getPackageName()
          returns a package name if the component type is contained in a package It retrieves the name from the containing AadlPackage object
 java.lang.String getQualifiedName()
          get qualified component classifier name.
 java.lang.String getQualifiedTypeName()
          get qualified component classifier name.
 org.eclipse.emf.common.util.EList getXAllExtend()
          Return all the classifiers extended by this classifier, in order from closest to farthest.
 org.eclipse.emf.common.util.EList getXAllExtendPlusSelf()
          Return a list of classifiers extended by this classifier including itself.
 Classifier getXExtend()
          returns the reference to the classifier being extended
 boolean hasExtends()
          returns true if classifier is an extension of another classifier
 void setExtendedClassifierReference(ClassifierReference cr)
          sets the 'Extended classifier reference' attribute.
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
acceptsProperty, addProperty, addPropertyValue, basicSetProperties, checkPropertyAssociation, createAccumulator, createPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
checkName, getName, setName, toString
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
addComment, eObjectForURIFragmentSegment, eURIFragmentSegment, getAadlSpec, getAdapter, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, getSecondReferencedObject, getSystemInstance, setLocationReference, setLocationReference
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.Classifier
getXAllFeature
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.PropertyHolder
acceptsProperty, addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.NamedElement
getName, setName
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, getSecondReferencedObject, getSystemInstance, 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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

annexSubclause

protected org.eclipse.emf.common.util.EList annexSubclause
The cached value of the 'Annex Subclause' containment reference list.

See Also:
getAnnexSubclause()

extendedClassifierReference

protected ClassifierReference extendedClassifierReference
hold extended classifier reference

Constructor Detail

ClassifierImpl

protected ClassifierImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class PropertyHolderImpl

getAnnexSubclause

public org.eclipse.emf.common.util.EList getAnnexSubclause()

Specified by:
getAnnexSubclause in interface Classifier
Returns:
the value of the 'Annex Subclause' containment reference list.
See Also:
CorePackage.getClassifier_AnnexSubclause()

addAnnexSubclause

public void addAnnexSubclause(AnnexSubclause newAnnexSubclause)
phf: add element to multiplicity EList

Specified by:
addAnnexSubclause in interface Classifier
Parameters:
newAnnexSubclause - the value to add to 'Annex Subclause' containment reference list.

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class PropertyHolderImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class PropertyHolderImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class PropertyHolderImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class PropertyHolderImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class PropertyHolderImpl

getQualifiedName

public java.lang.String getQualifiedName()
get qualified component classifier name. Always a String

Specified by:
getQualifiedName in interface Classifier

getQualifiedTypeName

public java.lang.String getQualifiedTypeName()
get qualified component classifier name. Always a String


hasExtends

public boolean hasExtends()
returns true if classifier is an extension of another classifier

Specified by:
hasExtends in interface Classifier
Returns:
true if extends is specified by reference or by names

getExtendedQualifiedName

public java.lang.String getExtendedQualifiedName()
get qualified name of classifier being extended. Always a String

Specified by:
getExtendedQualifiedName in interface Classifier

getExtendedClassifierReference

public ClassifierReference getExtendedClassifierReference()
Returns the 'Extended classifier reference' attribute.

Specified by:
getExtendedClassifierReference in interface Classifier

setExtendedClassifierReference

public void setExtendedClassifierReference(ClassifierReference cr)
sets the 'Extended classifier reference' attribute.

Specified by:
setExtendedClassifierReference in interface Classifier

getXExtend

public Classifier getXExtend()
returns the reference to the classifier being extended

Specified by:
getXExtend in interface Classifier
Returns:
component classifier

getXAllExtend

public final org.eclipse.emf.common.util.EList getXAllExtend()
Description copied from interface: Classifier
Return all the classifiers extended by this classifier, in order from closest to farthest. That is, if classifier C extends classifier B that extends classifier A, then the list will contain classifiers B and A in that order.

Although a well-formed model should not contain loops in the extension heirarchy, 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 [D, A, B].

Specified by:
getXAllExtend in interface Classifier

getXAllExtendPlusSelf

public final org.eclipse.emf.common.util.EList getXAllExtendPlusSelf()
Description copied from interface: Classifier
Return a list of classifiers extended by this classifier including itself. That is, if classifier 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 heirarchy, 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].

Specified by:
getXAllExtendPlusSelf in interface Classifier

getAllPropertyAssociation

public final org.eclipse.emf.common.util.EList getAllPropertyAssociation()
Description copied from interface: Classifier
Get all the property associations, including those from any ancestor classifiers.

Specified by:
getAllPropertyAssociation in interface Classifier
Returns:
A list of the property associations. Property associations from an ancestor component classifier will appear before those of any descendents.

getPackageName

public java.lang.String getPackageName()
returns a package name if the component type is contained in a package It retrieves the name from the containing AadlPackage object

Specified by:
getPackageName in interface Classifier
Returns:
String package name or empty string