Skip to content

Method: doIt()

1: package schnittstelle.ablaeufeKommandos.ErstelleKommandos;
2:
3: import ablaeufe.meta.konnektortypen.Abstraktionstyp;
4: import schnittstelle.kommandoArchitektur.KommandoOhneExceptionMitResultat;
5: import schnittstelle.kommandoArchitektur.KommandoVisitor;
6:
7: /**
8: * Ein Kommando nach dem Command-Pattern für das erstellen eines Abstraktionstypen des Metamodells der Abläufe.
9: *
10: */
11: public class ErstelleAbstraktionstypKommandoMitResultat extends KommandoOhneExceptionMitResultat<Abstraktionstyp> {
12:
13: /**
14: * Erstellt das Kommando.
15: */
16:         public ErstelleAbstraktionstypKommandoMitResultat() {
17:         }
18:         
19:         @Override
20:         protected Abstraktionstyp doIt() {
21:                 return Abstraktionstyp.create();
22:         }
23:         
24:         @Override
25:         public void accept(final KommandoVisitor v) {
26:                 v.handle(this);
27:         }
28:         
29: }