Esempio n. 1
0
 public static String stepLiteralName(NamedElement s) {
   String result = "";
   if (s instanceof Vertex) {
     result = EmfStateMachineUtil.getStatePath((Vertex) s);
   } else if (s instanceof ActivityNode) {
     result = EmfActivityUtil.getNodePath((ActivityNode) s);
   }
   return JavaNameGenerator.toJavaName(result.replace("::", "_").toUpperCase());
 }
Esempio n. 2
0
 public static String getGuardMethod(NamedElement source, NamedElement flow) {
   return JavaNameGenerator.toJavaName(
       "is"
           + NameConverter.capitalize(source.getName())
           + NameConverter.capitalize(flow.getName()));
 }