org.eclipse.ocl.ecore.delegate
Class ValidationBehavior.InvariantCacheAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.ocl.ecore.delegate.ValidationBehavior.InvariantCacheAdapter
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
- Enclosing class:
- ValidationBehavior
protected static class ValidationBehavior.InvariantCacheAdapter
- extends org.eclipse.emf.common.notify.impl.AdapterImpl
Caches the OCL invariants of an EClassifier. Adding this cache
doesn't "change" the Ecore object to which it
is attached.
- Since:
- 3.1
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
| Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
|
Method Summary |
OCLExpression |
get(java.lang.String constraintName)
Returns the OCLExpression representing the abstract syntax of the constraint named
constraintName if previously cached using put(String, OCLExpression);
null otherwise. |
boolean |
isAdapterForType(java.lang.Object type)
|
void |
put(java.lang.String constraintName,
OCLExpression expression)
|
OCLExpression |
remove(java.lang.String constraintName)
Removes any cache entry for the constraint named constraintName and
returns any expression previously cached under that constraint name if any, or
null otherwise. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget, unsetTarget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationBehavior.InvariantCacheAdapter
protected ValidationBehavior.InvariantCacheAdapter()
get
public OCLExpression get(java.lang.String constraintName)
- Returns the
OCLExpression representing the abstract syntax of the constraint named
constraintName if previously cached using put(String, OCLExpression);
null otherwise.
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter- Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl
put
public void put(java.lang.String constraintName,
OCLExpression expression)
remove
public OCLExpression remove(java.lang.String constraintName)
- Removes any cache entry for the constraint named
constraintName and
returns any expression previously cached under that constraint name if any, or
null otherwise.