org.eclipse.ocl.examples.impactanalyzer.util
Class AnnotatedEObject

java.lang.Object
  extended by org.eclipse.ocl.examples.impactanalyzer.util.AnnotatedEObject
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject

public class AnnotatedEObject
extends java.lang.Object
implements org.eclipse.emf.ecore.EObject

The AnnotatedEObject is a delegate of an EObject that adds support for Sting annotations. Additionally it holds a Stack to enable the backtracking of TupleLiteralExp

Author:
martin.hanysz

Field Summary
static boolean IS_IN_DEBUG_MODE
           
static java.lang.String NOT_IN_DEBUG_MODE_MESSAGE
           
 
Constructor Summary
AnnotatedEObject(org.eclipse.emf.ecore.EObject objectReached, AnnotatedEObject from, java.lang.String comment)
           
AnnotatedEObject(org.eclipse.emf.ecore.EObject objectReached, java.lang.String comment)
          Constructor of the AnnotatedEObject.
 
Method Summary
 org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
           
 org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> eAllContents()
           
 org.eclipse.emf.ecore.EClass eClass()
           
 org.eclipse.emf.ecore.EObject eContainer()
           
 org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
           
 org.eclipse.emf.ecore.EReference eContainmentFeature()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eCrossReferences()
           
 boolean eDeliver()
           
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature, boolean resolve)
           
 java.lang.Object eInvoke(org.eclipse.emf.ecore.EOperation operation, org.eclipse.emf.common.util.EList<?> arguments)
           
 boolean eIsProxy()
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 void eNotify(org.eclipse.emf.common.notify.Notification notification)
           
 boolean equals(java.lang.Object o)
           
 org.eclipse.emf.ecore.resource.Resource eResource()
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object newValue)
           
 void eSetDeliver(boolean deliver)
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 org.eclipse.emf.ecore.EObject getAnnotatedObject()
           
 java.lang.String getComment()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_IN_DEBUG_MODE_MESSAGE

public static final java.lang.String NOT_IN_DEBUG_MODE_MESSAGE
See Also:
Constant Field Values

IS_IN_DEBUG_MODE

public static final boolean IS_IN_DEBUG_MODE
Constructor Detail

AnnotatedEObject

public AnnotatedEObject(org.eclipse.emf.ecore.EObject objectReached,
                        java.lang.String comment)
Constructor of the AnnotatedEObject.

Parameters:
objectReached - the EObject to annotate
comment - an annotationString

AnnotatedEObject

public AnnotatedEObject(org.eclipse.emf.ecore.EObject objectReached,
                        AnnotatedEObject from,
                        java.lang.String comment)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getComment

public java.lang.String getComment()

getAnnotatedObject

public org.eclipse.emf.ecore.EObject getAnnotatedObject()

eAllContents

public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> eAllContents()
Specified by:
eAllContents in interface org.eclipse.emf.ecore.EObject

eClass

public org.eclipse.emf.ecore.EClass eClass()
Specified by:
eClass in interface org.eclipse.emf.ecore.EObject

eContainer

public org.eclipse.emf.ecore.EObject eContainer()
Specified by:
eContainer in interface org.eclipse.emf.ecore.EObject

eContainingFeature

public org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
Specified by:
eContainingFeature in interface org.eclipse.emf.ecore.EObject

eContainmentFeature

public org.eclipse.emf.ecore.EReference eContainmentFeature()
Specified by:
eContainmentFeature in interface org.eclipse.emf.ecore.EObject

eContents

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
Specified by:
eContents in interface org.eclipse.emf.ecore.EObject

eCrossReferences

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eCrossReferences()
Specified by:
eCrossReferences in interface org.eclipse.emf.ecore.EObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature,
                             boolean resolve)
Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eInvoke

public java.lang.Object eInvoke(org.eclipse.emf.ecore.EOperation operation,
                                org.eclipse.emf.common.util.EList<?> arguments)
                         throws java.lang.reflect.InvocationTargetException
Specified by:
eInvoke in interface org.eclipse.emf.ecore.EObject
Throws:
java.lang.reflect.InvocationTargetException

eIsProxy

public boolean eIsProxy()
Specified by:
eIsProxy in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject

eResource

public org.eclipse.emf.ecore.resource.Resource eResource()
Specified by:
eResource in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature feature,
                 java.lang.Object newValue)
Specified by:
eSet in interface org.eclipse.emf.ecore.EObject

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject

eAdapters

public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
Specified by:
eAdapters in interface org.eclipse.emf.common.notify.Notifier

eDeliver

public boolean eDeliver()
Specified by:
eDeliver in interface org.eclipse.emf.common.notify.Notifier

eNotify

public void eNotify(org.eclipse.emf.common.notify.Notification notification)
Specified by:
eNotify in interface org.eclipse.emf.common.notify.Notifier

eSetDeliver

public void eSetDeliver(boolean deliver)
Specified by:
eSetDeliver in interface org.eclipse.emf.common.notify.Notifier

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object