protected static class ValidationBehavior.InvariantCacheAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
EClassifier
. Adding this cache
doesn't "change"
the Ecore object to which it
is attached.Modifier | Constructor and Description |
---|---|
protected |
InvariantCacheAdapter() |
Modifier and Type | Method and Description |
---|---|
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. |
public OCLExpression get(java.lang.String constraintName)
OCLExpression
representing the abstract syntax of the constraint named
constraintName
if previously cached using put(String, OCLExpression)
;
null
otherwise.public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
isAdapterForType
in class org.eclipse.emf.common.notify.impl.AdapterImpl
public void put(java.lang.String constraintName, OCLExpression expression)
public OCLExpression remove(java.lang.String constraintName)
constraintName
and
returns any expression previously cached under that constraint name if any, or
null
otherwise.