org.eclipse.ocl.examples.codegen.cgmodel.impl
Class CGClassImpl

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.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.ocl.examples.codegen.cgmodel.impl.CGElementImpl
                      extended by org.eclipse.ocl.examples.codegen.cgmodel.impl.CGNamedElementImpl
                          extended by org.eclipse.ocl.examples.codegen.cgmodel.impl.CGClassImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject, CGClass, CGElement, CGNamedElement, Nameable

public class CGClassImpl
extends CGNamedElementImpl
implements CGClass

An implementation of the model object 'CG Class'.

The following features are implemented:

Generated

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
 
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>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  boolean interface_
          The cached value of the 'Interface' attribute.
protected static boolean INTERFACE_EDEFAULT
          The default value of the 'Interface' attribute.
protected  org.eclipse.emf.common.util.EList<CGConstraint> invariants
          The cached value of the 'Invariants' containment reference list.
protected  org.eclipse.emf.common.util.EList<CGOperation> operations
          The cached value of the 'Operations' containment reference list.
protected  org.eclipse.emf.common.util.EList<CGProperty> properties
          The cached value of the 'Properties' containment reference list.
protected  org.eclipse.emf.common.util.EList<CGClass> superTypes
          The cached value of the 'Super Types' reference list.
protected  org.eclipse.emf.common.util.EList<CGClass> templateParameters
          The cached value of the 'Template Parameters' reference list.
 
Fields inherited from class org.eclipse.ocl.examples.codegen.cgmodel.impl.CGNamedElementImpl
ast, AST_EDEFAULT, name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
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.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected CGClassImpl()
           
 
Method Summary
<R> R
accept(CGModelVisitor<R> visitor)
          Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
 org.eclipse.emf.common.notify.NotificationChain basicSetContainingPackage(CGPackage newContainingPackage, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 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)
           
 CGPackage getContainingPackage()
           
 java.util.List<CGConstraint> getInvariants()
           
 java.util.List<CGOperation> getOperations()
           
 java.util.List<CGProperty> getProperties()
           
 java.util.List<CGClass> getSuperTypes()
           
 java.util.List<CGClass> getTemplateParameters()
           
 boolean isInterface()
           
 void setContainingPackage(CGPackage newContainingPackage)
           
 void setInterface(boolean newInterface)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.codegen.cgmodel.impl.CGNamedElementImpl
getAst, getName, setAst, setName
 
Methods inherited from class org.eclipse.ocl.examples.codegen.cgmodel.impl.CGElementImpl
getChildren, getParent, getPlace, isContext, rewriteAs
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, 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 org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getAst, getName, setAst, setName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
getChildren, getParent, getPlace, isContext, rewriteAs
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

operations

protected org.eclipse.emf.common.util.EList<CGOperation> operations
The cached value of the 'Operations' containment reference list.

See Also:
getOperations()
Generated
Ordered

properties

protected org.eclipse.emf.common.util.EList<CGProperty> properties
The cached value of the 'Properties' containment reference list.

See Also:
getProperties()
Generated
Ordered

invariants

protected org.eclipse.emf.common.util.EList<CGConstraint> invariants
The cached value of the 'Invariants' containment reference list.

See Also:
getInvariants()
Generated
Ordered

superTypes

protected org.eclipse.emf.common.util.EList<CGClass> superTypes
The cached value of the 'Super Types' reference list.

See Also:
getSuperTypes()
Generated
Ordered

INTERFACE_EDEFAULT

protected static final boolean INTERFACE_EDEFAULT
The default value of the 'Interface' attribute.

See Also:
isInterface(), Constant Field Values
Generated
Ordered

interface_

protected boolean interface_
The cached value of the 'Interface' attribute.

See Also:
isInterface()
Generated
Ordered

templateParameters

protected org.eclipse.emf.common.util.EList<CGClass> templateParameters
The cached value of the 'Template Parameters' reference list.

See Also:
getTemplateParameters()
Generated
Ordered
Constructor Detail

CGClassImpl

protected CGClassImpl()

Generated
Method Detail

eStaticClass

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

Overrides:
eStaticClass in class CGNamedElementImpl
Generated

getContainingPackage

public CGPackage getContainingPackage()

Specified by:
getContainingPackage in interface CGClass
Returns:
the value of the 'Containing Package' container reference.
See Also:
CGClass.setContainingPackage(CGPackage), CGModelPackage.getCGClass_ContainingPackage(), CGPackage.getClasses()
Generated

basicSetContainingPackage

public org.eclipse.emf.common.notify.NotificationChain basicSetContainingPackage(CGPackage newContainingPackage,
                                                                                 org.eclipse.emf.common.notify.NotificationChain msgs)

Generated

setContainingPackage

public void setContainingPackage(CGPackage newContainingPackage)

Specified by:
setContainingPackage in interface CGClass
Parameters:
newContainingPackage - the new value of the 'Containing Package' container reference.
See Also:
CGClass.getContainingPackage()
Generated

getOperations

@NonNull
public java.util.List<CGOperation> getOperations()

Specified by:
getOperations in interface CGClass
Returns:
the value of the 'Operations' containment reference list.
See Also:
CGModelPackage.getCGClass_Operations(), CGOperation.getContainingClass()
Generated

getProperties

@NonNull
public java.util.List<CGProperty> getProperties()

Specified by:
getProperties in interface CGClass
Returns:
the value of the 'Properties' containment reference list.
See Also:
CGModelPackage.getCGClass_Properties(), CGProperty.getContainingClass()
Generated

getInvariants

public java.util.List<CGConstraint> getInvariants()

Specified by:
getInvariants in interface CGClass
Returns:
the value of the 'Invariants' containment reference list.
See Also:
CGModelPackage.getCGClass_Invariants()
Generated

getSuperTypes

public java.util.List<CGClass> getSuperTypes()

Specified by:
getSuperTypes in interface CGClass
Returns:
the value of the 'Super Types' reference list.
See Also:
CGModelPackage.getCGClass_SuperTypes()
Generated

isInterface

public boolean isInterface()

Specified by:
isInterface in interface CGClass
Returns:
the value of the 'Interface' attribute.
See Also:
CGClass.setInterface(boolean), CGModelPackage.getCGClass_Interface()
Generated

setInterface

public void setInterface(boolean newInterface)

Specified by:
setInterface in interface CGClass
Parameters:
newInterface - the new value of the 'Interface' attribute.
See Also:
CGClass.isInterface()
Generated

getTemplateParameters

public java.util.List<CGClass> getTemplateParameters()

Specified by:
getTemplateParameters in interface CGClass
Returns:
the value of the 'Template Parameters' reference list.
See Also:
CGModelPackage.getCGClass_TemplateParameters()
Generated

toString

public java.lang.String toString()

Overrides:
toString in class CGNamedElementImpl
Generated

eInverseAdd

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

Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eBasicRemoveFromContainerFeature

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

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 CGNamedElementImpl
Generated

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

accept

@Nullable
public <R> R accept(@NonNull
                             CGModelVisitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.

Specified by:
accept in interface CGElement
Overrides:
accept in class CGElementImpl
Generated