Class RuleText

java.lang.Object
net.simplace.client.sim.management.RuleText

public final class RuleText extends Object
Text of rules as written into the solution (Redmine #62).
Author:
Andreas Enders, Claude (Anthropic), co-author
  • Method Details

    • singleQuotes

      public static String singleQuotes(String aRule)
      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 be null
      Returns:
      the rule with texts in single quotes