org.eclipse.ocl.examples.pivot.scoping
Class PivotScopeView

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.scoping.PivotScopeView
All Implemented Interfaces:
ScopeView

public class PivotScopeView
extends java.lang.Object
implements ScopeView

ScopeViews support access to some or all of the elements in a scope. Accesses are filtered on the fly since a cache of results does not remain valid for long enough to merit it, with incremental reparsing regularly trashing the CST.


Field Summary
protected  Attribution attribution
           
protected  org.eclipse.emf.ecore.EObject child
           
protected  org.eclipse.emf.ecore.EStructuralFeature containmentFeature
           
protected  MetaModelManager metaModelManager
           
static ScopeView NULLSCOPEVIEW
          The NULLSCOPEVIEW to be returned by the most outer scope
protected  Element target
           
protected  org.eclipse.emf.ecore.EReference targetReference
           
 
Constructor Summary
PivotScopeView(MetaModelManager metaModelManager, Element target, Attribution attribution, org.eclipse.emf.ecore.EObject child, org.eclipse.emf.ecore.EStructuralFeature containmentFeature, org.eclipse.emf.ecore.EReference targetReference)
           
 
Method Summary
 Attribution getAttribution()
           
 org.eclipse.emf.ecore.EObject getChild()
           
 org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
           
 MetaModelManager getMetaModelManager()
           
 ScopeView getParent()
           
 Element getTarget()
           
 org.eclipse.emf.ecore.EReference getTargetReference()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULLSCOPEVIEW

public static final ScopeView NULLSCOPEVIEW
The NULLSCOPEVIEW to be returned by the most outer scope


metaModelManager

protected final MetaModelManager metaModelManager

attribution

protected final Attribution attribution

target

protected final Element target

child

protected final org.eclipse.emf.ecore.EObject child

containmentFeature

protected final org.eclipse.emf.ecore.EStructuralFeature containmentFeature

targetReference

protected final org.eclipse.emf.ecore.EReference targetReference
Constructor Detail

PivotScopeView

public PivotScopeView(MetaModelManager metaModelManager,
                      Element target,
                      Attribution attribution,
                      org.eclipse.emf.ecore.EObject child,
                      org.eclipse.emf.ecore.EStructuralFeature containmentFeature,
                      org.eclipse.emf.ecore.EReference targetReference)
Method Detail

getAttribution

public Attribution getAttribution()
Specified by:
getAttribution in interface ScopeView

getChild

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

getContainmentFeature

public org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
Specified by:
getContainmentFeature in interface ScopeView

getMetaModelManager

public MetaModelManager getMetaModelManager()

getParent

public ScopeView getParent()
Specified by:
getParent in interface ScopeView

getTarget

public final Element getTarget()
Specified by:
getTarget in interface ScopeView

getTargetReference

public org.eclipse.emf.ecore.EReference getTargetReference()
Specified by:
getTargetReference in interface ScopeView

toString

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