Révision 1844
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1844) | ||
---|---|---|
2019 | 2019 |
return null; |
2020 | 2020 |
} |
2021 | 2021 |
|
2022 |
/** |
|
2023 |
* Set the TXMResult parameters |
|
2024 |
* |
|
2025 |
* @param parameters |
|
2026 |
* the parameters to set |
|
2027 |
* @return true if no parameter read occured |
|
2028 |
* @throws CqiClientException |
|
2029 |
*/ |
|
2030 |
//public abstract boolean setParameters(TXMParameters parameters) throws Exception; |
|
2031 | 2022 |
|
2032 |
// this.parameters = parameters; |
|
2033 |
// if (this.parameters == null) { |
|
2034 |
// this.parameters = new TXMParameters(); |
|
2035 |
// } |
|
2036 |
// |
|
2037 |
// if (parameters != null) { |
|
2038 |
// for (String k : parameters.keySet()) { |
|
2039 |
// Object value = parameters.get(k); |
|
2040 |
// System.out.println("PUT "+k+"="+value+" IN "+this.parameters); |
|
2041 |
// if (value != null) |
|
2042 |
// this.parameters.put(k, value); |
|
2043 |
// else |
|
2044 |
// this.parameters.remove(k); // because parameters.put(k, null) raise an |
|
2045 |
// error |
|
2046 |
// } |
|
2047 |
// } |
|
2048 |
// } |
|
2049 |
|
|
2050 | 2023 |
/** |
2051 | 2024 |
* set the Java object class parameter members and check if the Java object |
2052 | 2025 |
* parameters are all set |
... | ... | |
2193 | 2166 |
return false; |
2194 | 2167 |
} |
2195 | 2168 |
|
2196 |
|
|
2197 |
// // clear the lazy name, no more needed since the object has been computed and getSimpleName() can now work |
|
2198 |
// this.lazyName = null; |
|
2199 |
// |
|
2200 |
// // store last used parameters |
|
2201 |
// this.updateLastParameters(); |
|
2202 |
|
|
2203 |
|
|
2204 |
|
|
2205 | 2169 |
} |
2206 | 2170 |
|
2207 | 2171 |
// clear the lazy name, no more needed since the object has been computed and getSimpleName() can now work |
... | ... | |
2262 | 2226 |
for (int i = 0; i < this.children.size(); i++) { |
2263 | 2227 |
this.children.get(i).compute(monitor, deepComputing); |
2264 | 2228 |
} |
2265 |
|
|
2266 |
// FIXME: SJ: this code generates concurrent modification exceptions when deep computing |
|
2267 |
// here for tests purpose, the code above does not generates exceptions |
|
2268 |
// for (TXMResult child : this.getChildren()) { |
|
2269 |
// // recompute only children that has been opened once |
|
2270 |
// child.compute(monitor, deepComputing); |
|
2271 |
// } |
|
2272 |
|
|
2273 | 2229 |
} |
2274 | 2230 |
} |
2275 | 2231 |
|
... | ... | |
2356 | 2312 |
return true; |
2357 | 2313 |
} |
2358 | 2314 |
|
2359 |
// public abstract boolean toTxt(File file, String encoding) throws Exception; |
|
2360 | 2315 |
@Deprecated |
2361 | 2316 |
// FIXME: should be moved in an exporter extension |
2362 | 2317 |
public abstract boolean toTxt(File outfile, String encoding, String colseparator, String txtseparator) throws Exception; |
Formats disponibles : Unified diff