|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.ext.misc.LessThanOrEquals
@Deprecated public class LessThanOrEquals
Compares two scalar data models as numbers. Integer comparison is performed.
Usage:
From java:
TemplateModelRoot root = new SimpleHash(); root.put( "lessThanOrEquals", new freemarker.ext.misc.LessThanOrEquals() ); ...
From your FM-Classic template:
<assign temp = 5> <if lessThanOrEquals( temp, 7 )> <p>Five is less than or equal to seven.</p> </if> ...
| Constructor Summary | |
|---|---|
LessThanOrEquals()
Deprecated. Creates new LessThanOrEquals |
|
| Method Summary | |
|---|---|
TemplateModel |
exec(java.util.List<java.lang.String> 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 LessThanOrEquals()
| Method Detail |
|---|
public TemplateModel exec(java.util.List<java.lang.String> arguments)
throws TemplateModelException
exec in interface TemplateMethodModelarguments - a List of String objects
containing the values of the arguments passed to the method.
TemplateModel produced by the method, or null.
TemplateModelException
public boolean isEmpty()
throws TemplateModelException
isEmpty in interface TemplateModelfalse, to indicate this object is not empty
TemplateModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||