Revision 47777 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/expressionevaluator/impl/function/dataaccess/ForeingValueFunction.java
ForeingValueFunction.java | ||
---|---|---|
66 | 66 |
case 1: |
67 | 67 |
Object fields_o = getObject(args, 0); |
68 | 68 |
if( fields_o == null ) { |
69 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREING_VALUE + "' function, type of parameter 'null' not supported, use string or list.");
|
|
69 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREIGN_VALUE + "' function, type of parameter 'null' not supported, use string or list.");
|
|
70 | 70 |
} |
71 | 71 |
if (fields_o instanceof String[]) { |
72 | 72 |
fieldNames = new UnmodifiableBasicListArrayAdapter<>((String[]) fields_o); |
... | ... | |
77 | 77 |
} else if (fields_o instanceof UnmodifiableBasicList) { |
78 | 78 |
fieldNames = (UnmodifiableBasicList<String>) fields_o; |
79 | 79 |
} else { |
80 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREING_VALUE + "' function, type of parameter '" + fields_o.getClass().getSimpleName() + "' not supported, use string or list.");
|
|
80 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREIGN_VALUE + "' function, type of parameter '" + fields_o.getClass().getSimpleName() + "' not supported, use string or list.");
|
|
81 | 81 |
} |
82 | 82 |
break; |
83 | 83 |
case 2: |
... | ... | |
89 | 89 |
); |
90 | 90 |
break; |
91 | 91 |
default: |
92 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREING_VALUE + "' function, type of parameter not supported, use string or list.");
|
|
92 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREIGN_VALUE + "' function, type of parameter not supported, use string or list.");
|
|
93 | 93 |
} |
94 | 94 |
Feature feature = this.current_row(interpreter); |
95 | 95 |
Feature currentFeature = feature; |
... | ... | |
120 | 120 |
} catch (ExpressionRuntimeException ex) { |
121 | 121 |
throw ex; |
122 | 122 |
} catch (Exception ex) { |
123 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREING_VALUE + "' function", ex);
|
|
123 |
throw new ExpressionRuntimeException("Problems calling '" + DataManager.FUNCTION_FOREIGN_VALUE + "' function", ex);
|
|
124 | 124 |
} |
125 | 125 |
} |
126 | 126 |
|
Also available in: Unified diff