Java Reference
In-Depth Information
Figure 3-6
Requirements launch configuration arguments
3.3.5 Adding OCL
As you should recall, we added a derived, transient, volatile rootTopics refer-
ence in our Map class. Section 3.2.4, “Applying OCL,” described the basics of
adding OCL and using dynamic templates to generate implementations for
invariant constraints, method bodies, and derived features. The example in that
section covered the rootTopics implementation using OCL and used a set of
dynamic templates that we use in this context as well. At this time, rename the
default templates folder to be a templates-domain source folder in the mindmap
project, and copy the templates provided in the solution into this folder. We'll
have additional templates later for deployment, so we can separate them into dif-
ferent root folders. Each DSL project that uses OCL to refine its domain model
Search WWH ::




Custom Search