From 076fc89a50126a4ec039b89c33ca37f69549629f Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Thu, 1 Oct 2009 19:39:20 +0000 Subject: [PATCH] SPR-5518: Documented ability to use text rather than symbols for SPEL operators (lt, le, gt, ge, eq, ne, div, mod, not). Can help in XML specification of expressions. --- spring-framework-reference/src/expressions.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-framework-reference/src/expressions.xml b/spring-framework-reference/src/expressions.xml index 43d33a3714..db5eac1fca 100644 --- a/spring-framework-reference/src/expressions.xml +++ b/spring-framework-reference/src/expressions.xml @@ -577,6 +577,12 @@ boolean falseValue = parser.parseExpression("'5.0067' matches '^-?\\d+(\\.\\d{2})?$'").getValue(Boolean.class); + Each symbolic operator can also be specified as a purely alphabetic equivalent. This avoids + problems where the symbols used have special meaning for the document type in which + the expression is embedded (eg. an XML document). The textual equivalents are shown + here: lt ('<'), gt ('>'), le ('<='), ge ('>='), + eq ('=='), ne ('!='), div ('/'), mod ('%'), not ('!'). + These are case insensitive.