| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A factory object responsible for creating the correct
 ModelElement subclass object for a NSUML MModelElement
 encountered during loading.  It is also responsible for creating a copy
 of itself set up to create elements in a specific Model.  This
 saves having separate factory-factories, and is an example of the GoF Prototype pattern.
| Method Summary | |
 Model.ElementFactory | 
createCopy(Model model)
Create the correct ElementFactory for
 model. | 
 ModelElement | 
createElement(ru.novosoft.uml.foundation.core.MModelElement me,
              ModelElement parent)
Create the correct ModelElement for
 me. | 
| Method Detail | 
public ModelElement createElement(ru.novosoft.uml.foundation.core.MModelElement me,
                                  ModelElement parent)
ModelElement for
 me.
me - the model element being loadedparent - the element which will contain the new ModelElement
ModelElement, or null if this ElementFactory cannot create one
 for meModel.Model(ru.novosoft.uml.model_management.MModel, java.util.List, java.util.List), 
Model.createElement(ru.novosoft.uml.foundation.core.MModelElement, com.ashridgetech.jamda.uml.ModelElement)public Model.ElementFactory createCopy(Model model)
ElementFactory for
 model.
model - the model being loaded
ElementFactory.  If the ElementFactory needs
 no knowledge of the Model to which it belongs, then this could be the 
 same instance, but this is probably a rare situation.
 This method will be called before the Model is fully initialised,
 so it should not do anything with the Model other than store a reference to it.Model.Model(ru.novosoft.uml.model_management.MModel, java.util.List, java.util.List), 
Model.getDefaultElementFactoryList()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||