Class SelectModel
java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<Unit, JustificationModel<?>>
ca.mcscert.jpipe.compiler.steps.transformations.SelectModel
Extracts a single
JustificationModel from a Unit by name, or
auto-selects it when the unit contains exactly one model and no name is
given.
Use -m / --model on the CLI to supply the name.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transformation
Transformation.Step<I,O> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JustificationModel<?> run(Unit unit, CompilationContext ctx) Business logic of this step.
-
Constructor Details
-
SelectModel
- Parameters:
diagramName- name of the model to select, ornullto auto-select when unambiguous.
-
-
Method Details
-
run
Description copied from class:TransformationBusiness logic of this step. Must not returnnull; may throw any exception. Usectxto report non-fatal diagnostics or inspect previously accumulated errors.- Specified by:
runin classTransformation<Unit, JustificationModel<?>>- Parameters:
unit- the value produced by the previous step.ctx- compilation context carrying the source path and diagnostic bag.- Returns:
- the transformed value — never
null.
-