|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CadenaAdapter
All automatically attached model adapters need to implement this interface.
| Method Summary | |
|---|---|
void |
addAffectedReferrers(Notification notification,
EObject notifyingObject,
EStructuralFeature notifyingObjectFeature,
java.util.Set<Triple<CadenaAdapter,EObject,EStructuralFeature>> referrers)
Calculate the set of model objects whose well-formedness could be affected by a structural change to element. |
void |
checkNode(EObject node)
Called when a complete check of the model is performed. |
void |
forwardReferenceChanged(Notification notification,
EObject second,
EStructuralFeature third)
|
| Method Detail |
|---|
void checkNode(EObject node)
node - The current node being checked.
void addAffectedReferrers(Notification notification,
EObject notifyingObject,
EStructuralFeature notifyingObjectFeature,
java.util.Set<Triple<CadenaAdapter,EObject,EStructuralFeature>> referrers)
Calculate the set of model objects whose well-formedness could be
affected by a structural change to element.
In order to prevent infinite, circular call sequences, the protocol for adding a referrer should be as follows:
Triple<CadenaAdapter, EObject, Integer> client = ...;
if (!referrers.contains(client))
{
referrers.add(client);
List<Adapter> adapters = client.second.eAdapters();
for (Adapter a : adapters)
{
if (a instanceof CadenaAdapter)
{
((CadenaAdapter)a).addAffectedReferrers(
client.second,
a,
client.third);
}
}
}
element - the model object which changesfeatureID - the structural feature on element which
changed; used to prune the set of objects returned
void forwardReferenceChanged(Notification notification,
EObject second,
EStructuralFeature third)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||