Revision 22512 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/rendering/filter/operations/ReplaceOperator.java

View differences:

ReplaceOperator.java
55 55
import com.hardcode.gdbms.engine.values.StringValue;
56 56
import com.hardcode.gdbms.engine.values.Value;
57 57
/**
58
 * 
59
 * Implements the funcionality of the ReplaceOperator operator which 
60
 * takes an string with a field name and returns its value contained in 
58
 *
59
 * Implements the funcionality of the ReplaceOperator operator which
60
 * takes an string with a field name and returns its value contained in
61 61
 * a HashTable
62
 * 
62
 *
63 63
 * @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es
64 64
 *
65 65
 */
66
public class ReplaceOperator implements Expression {
66
public class ReplaceOperator extends Operator {
67 67

  
68

  
68 69
	private String id;
69 70

  
70 71

  
71 72
	public String getName() {
72 73
		return OperationTags.REPLACE_OP;
73 74
	}
74
	
75

  
76
	public ReplaceOperator(Hashtable<String, Value> symbol_table) {
77
		super(symbol_table);
78
	}
79

  
75 80
	public void addArgument(String image) {
76 81
		id = image;
77 82

  
......
81 86

  
82 87
	}
83 88

  
84
	public Object evaluate(Hashtable<String, Value> symbol_table) throws ExpressionException {
89
	public Object evaluate() throws ExpressionException {
85 90

  
86 91
		Value v = symbol_table.get(id);
87 92
		if (v != null) {
......
124 129
		// TODO Auto-generated method stub
125 130

  
126 131
	}
127
	public void check(Hashtable<String, Value> symbol_table) throws ExpressionException {
132
	public void check() throws ExpressionException {
128 133
		return;
129 134
	}
130 135
	public String getValue() {

Also available in: Unified diff