Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / extExpressionField / src / org / gvsig / expressionfield / project / documents / table / operators / Distinct.java @ 29628

History | View | Annotate | Download (1.15 KB)

1
package org.gvsig.expressionfield.project.documents.table.operators;
2

    
3
import org.apache.bsf.BSFException;
4
import org.apache.bsf.BSFManager;
5
import org.gvsig.andami.PluginServices;
6
import org.gvsig.expressionfield.project.documents.table.AbstractOperator;
7
import org.gvsig.expressionfield.project.documents.table.IOperator;
8

    
9

    
10
/**
11
 * @author Vicente Caballero Navarro
12
 */
13
public class Distinct extends AbstractOperator{
14

    
15
        public String addText(String s) {
16
                return s.concat(toString());
17
        }
18
        public void eval(BSFManager interpreter) throws BSFException {
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 PluginServices.getText(this,"operator")+":  "+addText("")+"\n"+getDescription();
28
        }
29
        public String getDescription() {
30
        return PluginServices.getText(this, "returns") + ": " +
31
        PluginServices.getText(this, "boolean_value") + "\n" +
32
        PluginServices.getText(this, "description") + ": " +
33
        "Returns true if the objects are diferents.";
34
    }
35
}