Today's client-side scripts can get large and complex. Client-side scripting may use both script library classes and script library objects to handle such situations.
|Description||Realizes one or more «script library» classes in the logical view.|
Script libraries are modeled very simply (Figure 12-5). A client page draws a directional «script» stereotyped association to a script library class in the logical view. In the component view, a script library component (.js file) is modeled with a «script library» component and exists in a «physical root» hierarchy.
Figure 12-5. A script library with a «script» association in a client page
A script library component realizes a script library class (Figure 12-6).
Figure 12-6. Script library classes, realized by script library components
 The full source code and copyright statement can be found in Appendix E.
|Name||Client script object.|
Overview of Modeling and Web-Related Technologies
Building Web Applications