| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provider, which implements this interface is responsible for supplying functionality
of ReferenceCollections.
It is guaranteed, that before any other method is invoked, isApplicable method
with corresponding argument has been called and true has been returned.
Providers should keep list of references they provide on their own.
When it's neccessary to instantiate
reference (to return it from addReference or from references methods),
createReference method of ExtensionManager must be used.
| Method Summary | |
Reference | addReference(ReferenceCollection collection, Reference createdReference, Element element)This method is called, when addReference of ReferenceCollection was called. |
boolean | canAddReference(ReferenceCollection collection, Element element)This method is called, when user invoked canAddReference opertaion of
ReferenceCollection or right before invoking of addReference
method. |
void | finishSavingChanges(ReferenceDelta referenceDelta) |
boolean | isApplicable(ReferenceCollection collection)This method is called before calling of any other method of provider for particular ReferenceCollection. |
ReferenceEnumeration | references(ReferenceCollection collection)This method must return list of References of collection. |
ReferenceDelta | startSavingChanges(ReferenceCollection collection) |
| Method Detail |
public Reference addReference(ReferenceCollection collection, Reference createdReference, Element element)
addReference of ReferenceCollection was called.
canAddReference method, called right before this, returned
true.
element to collection.
References in the interface description.
collection, it's possible that
Reference is already created by other provider. In this case it will
createdReference argument and exactly this value must be
Reference was really added.element element, which must be referencedcreatedReference null or already instanced ReferencecreatedReference or new instance of
Reference, if createdReference is nullpublic boolean canAddReference(ReferenceCollection collection, Element element)
canAddReference opertaion of
ReferenceCollection or right before invoking of addReference
true if it is capable of adding reference to element
collectionpublic void finishSavingChanges(ReferenceDelta referenceDelta)
public boolean isApplicable(ReferenceCollection collection)
ReferenceCollection.
true if it can work with this collectionpublic ReferenceEnumeration references(ReferenceCollection collection)
References of collection.
The result of collaborative execution of this method for multiple
providers registered in the model is a concatenation of the
enumerations returned by providers.
public ReferenceDelta startSavingChanges(ReferenceCollection collection)
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||