Custom Namespace
Introduction
This mechanism allows you to extend the UP meta model with your own classes and properties of these classes. These classes and their methods can be used in the project.
Implementation
Calling a method on a class
- The class must be extended by ANamespaceXXX (Example: ANamespaceFunctionImplementation to use them in function implementations).
- Define the method. (In this example is a template function implemented)
- These transition parameters must be specified when creating the functions.
- Implement the template function
- The defined methods can now be used in function implementations.
Calling a method on a property of a class
- The class must be extended also by APropertyXXX (Example: APropertyComposition if properties with type Composition are used).
- The property must bi extended by property.
- The defined methods can now be used in function implementations.
Example
An example project is available here