module uml_base
import toolcontext
-import model
-
-redef class ToolContext
- # -p
- var opt_privacy = new OptionBool("Generates private API", "-p", "--private")
-
- # Shortcut for the value of `self.opt_privacy`
- fun private_gen: Bool do return opt_privacy.value
-
- redef init do
- option_context.add_option opt_privacy
- super
- end
-end
+import model::model_collect
+# UML model builder.
class UMLModel
+
+ # Model to access mentities
var model: Model
+
+ # Main module used for linearization.
var mainmodule: MModule
- var ctx: ToolContext
+
+ # Filters to apply on model if any
+ var filter: nullable ModelFilter
end