root / trunk / libraries / libExpressions / src / main / java / org / gvsig / operators / LessEquals.java @ 23299
History | View | Annotate | Download (901 Bytes)
1 |
package org.gvsig.operators; |
---|---|
2 |
|
3 |
import org.apache.bsf.BSFException; |
4 |
import org.apache.bsf.BSFManager; |
5 |
import org.gvsig.baseclasses.AbstractOperator; |
6 |
import org.gvsig.baseclasses.IOperator; |
7 |
|
8 |
/**
|
9 |
* @author Vicente Caballero Navarro
|
10 |
*/
|
11 |
public class LessEquals extends AbstractOperator { |
12 |
|
13 |
public String addText(String s) { |
14 |
return s.concat(toString());
|
15 |
} |
16 |
|
17 |
public void eval(BSFManager interpreter) throws BSFException { |
18 |
} |
19 |
public String toString() { |
20 |
return "<="; |
21 |
} |
22 |
public boolean isEnable() { |
23 |
return (getType()==IOperator.NUMBER);
|
24 |
} |
25 |
public String getTooltip(){ |
26 |
return "operator"+": "+addText("")+"\n"+getDescription(); |
27 |
} |
28 |
public String getDescription() { |
29 |
return "returns" + ": " + |
30 |
"boolean_value" + "\n" + |
31 |
"description" + ": " + |
32 |
"Returns true if the first object value is less or equals than the second value.";
|
33 |
} |
34 |
} |