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()); }
public static String getGuardMethod(NamedElement source, NamedElement flow) { return JavaNameGenerator.toJavaName( "is" + NameConverter.capitalize(source.getName()) + NameConverter.capitalize(flow.getName())); }