public abstract class AbstractDelegatedBehavior<E extends org.eclipse.emf.ecore.EModelElement,R,F> extends java.lang.Object implements DelegatedBehavior<E,R,F>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDelegatedBehavior.ExpressionCacheAdapter
Caches a single OCL expression in an adapter that can be attached, e.g., to an Ecore object
without
"modifying" the object to which the adapter gets attached. |
Modifier and Type | Field and Description |
---|---|
static OCLExpression |
NO_OCL_DEFINITION
An "identifying" instance that helps distinguish between the case where an OCL expression
isn't found in the expression cache and hasn't been looked up elsewhere yet from the case where
we looked around for a definition but couldn't find one
|
Constructor and Description |
---|
AbstractDelegatedBehavior() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<DelegatedBehavior<?,?,?>> |
getDelegatedBehaviors() |
java.util.List<DelegateDomain> |
getDelegateDomains(E eObject) |
java.util.List<F> |
getFactories(E eObject) |
protected abstract F |
getFactory(DelegateDomain delegateDomain,
E eObject) |
F |
getFactory(E eObject) |
static boolean |
isNoOCLDefinition(OCLExpression e)
Return true if
e is a reserved expression used to cache a miss and so
avoid repeating the miss processing on subsequent accesses. |
void |
setDelegates(org.eclipse.emf.ecore.EPackage ePackage,
java.util.List<java.lang.String> delegateURIs) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultFactory, getDefaultRegistry, getEPackage, getFactoryClass, getName, getRegistryClass
public static final OCLExpression NO_OCL_DEFINITION
public static java.util.List<DelegatedBehavior<?,?,?>> getDelegatedBehaviors()
public static boolean isNoOCLDefinition(OCLExpression e)
e
is a reserved expression used to cache a miss and so
avoid repeating the miss processing on subsequent accesses.public java.util.List<DelegateDomain> getDelegateDomains(E eObject)
public java.util.List<F> getFactories(E eObject)
getFactories
in interface DelegatedBehavior<E extends org.eclipse.emf.ecore.EModelElement,R,F>
protected abstract F getFactory(DelegateDomain delegateDomain, E eObject)
public F getFactory(E eObject)
getFactory
in interface DelegatedBehavior<E extends org.eclipse.emf.ecore.EModelElement,R,F>
public void setDelegates(org.eclipse.emf.ecore.EPackage ePackage, java.util.List<java.lang.String> delegateURIs)
setDelegates
in interface DelegatedBehavior<E extends org.eclipse.emf.ecore.EModelElement,R,F>
public java.lang.String toString()
toString
in class java.lang.Object