|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.ext.misc.LessThan
Compares two scalar data models as numbers. Integer comparison is performed.
Usage:
From java:
TemplateModelRoot root = new SimpleHash(); root.put( "lessThan", new freemarker.ext.misc.LessThan() ); ...
From your FM-Classic template:
<assign temp = 1> <if lessThan( temp, 3 )> <p>One is less than three.</p> </if> ...
Constructor Summary | |
LessThan()
Deprecated. Creates new LessThan |
Method Summary | |
TemplateModel |
exec(java.util.List arguments)
Deprecated. Executes a method call. |
boolean |
isEmpty()
Deprecated. Is the object empty? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LessThan()
Method Detail |
public TemplateModel exec(java.util.List arguments) throws TemplateModelException
exec
in interface TemplateMethodModel
arguments
- a List
of String
objects
containing the values of the arguments passed to the method.TemplateModel
produced by the method, or null.public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
false
, to indicate this object is not empty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |