Class RuleText
java.lang.Object
net.simplace.client.sim.management.RuleText
Text of rules as written into the solution (Redmine #62).
- Author:
- Andreas Enders, Claude (Anthropic), co-author
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringsingleQuotes(String aRule) Writes the texts of a JEXL rule in single quotes:"es regnet"becomes'es regnet'.
-
Method Details
-
singleQuotes
Writes the texts of a JEXL rule in single quotes:"es regnet"becomes'es regnet'. Rules are XML attributes in double quotes, so double quotes would be written as"; for JEXL both are the same. A text containing a single quote or a backslash stays as it is, as does a rule with an unclosed text.- Parameters:
aRule- the rule, may benull- Returns:
- the rule with texts in single quotes
-