root / trunk / libraries / libExpressions / src / main / java / org / gvsig / operators / Equal.java @ 23299
History | View | Annotate | Download (951 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 Equal 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 |
} |
20 |
public String toString() { |
21 |
return " == "; |
22 |
} |
23 |
public boolean isEnable() { |
24 |
return (getType()==IOperator.DATE || getType()==IOperator.NUMBER || getType()==IOperator.STRING);
|
25 |
} |
26 |
public String getTooltip(){ |
27 |
return "operator"+": "+addText("")+"\n"+getDescription(); |
28 |
} |
29 |
public String getDescription() { |
30 |
return "returns" + ": " + |
31 |
"boolean_value" + "\n" + |
32 |
"description" + ": " + |
33 |
"Returns true if the first object value is equals than the second value.";
|
34 |
} |
35 |
} |