Package org.camunda.community.bpmndt
Class Literal
java.lang.Object
org.camunda.community.bpmndt.Literal
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoJavaLiteral(String id) Converts the given BPMN element ID into a Java literal, which can be used when generating source code.static StringConverts the given BPMN element ID into a literal, which can be used when generating source code.
-
Method Details
-
toJavaLiteral
Converts the given BPMN element ID into a Java literal, which can be used when generating source code. The conversion lowers all characters and retains letters as well as digits. All other characters are converted into underscores. If the literal starts with a digit, an additional underscore is prepended.- Parameters:
id- The ID of a specific flow node or process.- Returns:
- A Java conform literal.
-
toLiteral
Converts the given BPMN element ID into a literal, which can be used when generating source code. The conversion retains letters and digits. All other characters are converted into underscores. Moreover, upper case is also retained.- Parameters:
id- The ID of a specific flow node or process.- Returns:
- A conform literal.
-