Download Final Report --

Transcript
CHAPTER 6. IMPLEMENTATION
90
Loading from and saving to XML can only be done at the project level. Figure
6.8 explains the sequence when saving. The XMLFilter class is used to force the
.xml file extension. The Controller class can be used from different parts
in the GUI to save the project. The ProjectModel class in turn calls methods
provided by XMLBeans to store the contents of the project.
splight
splight.storage
Controller
splight
ProjectModel
XMLFilter
getFile
saveProjectAs
XMLFilter
getExtension
unhide
setFile
save
?: validate
unhide
?: save
save
Figure 6.8: Sequence diagram for the save operation