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.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2039 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
99afed69f5
commit
1709072b6b
|
|
@ -577,6 +577,12 @@ boolean falseValue =
|
|||
parser.parseExpression("'5.0067' matches '^-?\\d+(\\.\\d{2})?$'").getValue(Boolean.class);
|
||||
|
||||
</programlisting>
|
||||
<para>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.</para>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
|
|
|||
Loading…
Reference in New Issue