xtUML Editor Developer Training · Module 5 · Unit 5
Exercise - Selections
Time for another exercise.
Your task:
- Add a new function
boolean isInPackage()toModelClass_c.java. The function shall returntrueif the parent of the class is a Package, otherwise it shall returnfalse. - Write the necessary OAL selection as a comment inside this operation, then write the actual implementation in Java.
- Call the new
isInPackage()fromModelClass_c.setKey_lett() - Build
- Run the xtUML Editor Application in debug mode. Show via breakpoint and stepping that the function successfully returns
truefor a class inside a package.