Révision 567
| tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 567) | ||
|---|---|---|
| 300 | 300 |
@Override |
| 301 | 301 |
public boolean saveParameters() {
|
| 302 | 302 |
|
| 303 |
if (pFmaxFilter != null) this.setParameterValue(IndexPreferences.FMAX_FILTER, this.pFmaxFilter);
|
|
| 303 |
if (pFmaxFilter != null) this.saveParameter(IndexPreferences.FMAX_FILTER, this.pFmaxFilter);
|
|
| 304 | 304 |
|
| 305 |
if (pFminFilter != null) this.setParameterValue(IndexPreferences.FMIN_FILTER, this.pFminFilter);
|
|
| 305 |
if (pFminFilter != null) this.saveParameter(IndexPreferences.FMIN_FILTER, this.pFminFilter);
|
|
| 306 | 306 |
|
| 307 |
if (pNLinesPerPage != null) this.setParameterValue(IndexPreferences.NLINESPERPAGE, this.pNLinesPerPage);
|
|
| 307 |
if (pNLinesPerPage != null) this.saveParameter(IndexPreferences.NLINESPERPAGE, this.pNLinesPerPage);
|
|
| 308 | 308 |
|
| 309 |
if (pProperties != null) this.setParameterValue(IndexPreferences.PROPERTIES, WordProperty.fromListToPreferenceString(pProperties));
|
|
| 309 |
if (pProperties != null) this.saveParameter(IndexPreferences.PROPERTIES, WordProperty.fromListToPreferenceString(pProperties));
|
|
| 310 | 310 |
|
| 311 |
if (pPropertiesSeparator != null) this.setParameterValue(IndexPreferences.PROPERTIES_SEPARATOR, this.pPropertiesSeparator);
|
|
| 311 |
if (pPropertiesSeparator != null) this.saveParameter(IndexPreferences.PROPERTIES_SEPARATOR, this.pPropertiesSeparator);
|
|
| 312 | 312 |
|
| 313 |
if (pQuery != null) this.setParameterValue(IndexPreferences.QUERY, this.pQuery.getQueryString());
|
|
| 313 |
if (pQuery != null) this.saveParameter(IndexPreferences.QUERY, this.pQuery.getQueryString());
|
|
| 314 | 314 |
|
| 315 |
if (pTopIndex != null) this.setParameterValue(IndexPreferences.NTOPINDEX, this.pTopIndex);
|
|
| 315 |
if (pTopIndex != null) this.saveParameter(IndexPreferences.NTOPINDEX, this.pTopIndex);
|
|
| 316 | 316 |
|
| 317 |
if (pVmaxFilter != null) this.setParameterValue(IndexPreferences.VMAX_FILTER, this.pVmaxFilter);
|
|
| 317 |
if (pVmaxFilter != null) this.saveParameter(IndexPreferences.VMAX_FILTER, this.pVmaxFilter);
|
|
| 318 | 318 |
|
| 319 | 319 |
return true; |
| 320 | 320 |
} |
| tmp/org.txm.internalview.core/src/org/txm/functions/internal/InternalView.java (revision 567) | ||
|---|---|---|
| 98 | 98 |
@Override |
| 99 | 99 |
public boolean saveParameters() {
|
| 100 | 100 |
|
| 101 |
if (pCurrentPage != null) this.setParameterValue(InternalViewPreferences.CURRENTPAGE, pCurrentPage); |
|
| 102 |
if (pStructure != null) this.setParameterValue(InternalViewPreferences.STRUCTURALUNIT, pStructure.getName()); |
|
| 103 |
if (pStructProperties != null) this.setParameterValue(InternalViewPreferences.STRUCTURALUNITPROPERTIES, StringUtils.join(pStructProperties, "\t")); |
|
| 104 |
if (pProperties != null) this.setParameterValue(InternalViewPreferences.PROPERTIES, StringUtils.join(pProperties, "\t")); |
|
| 101 |
if (pCurrentPage != null) {
|
|
| 102 |
this.saveParameter(InternalViewPreferences.CURRENTPAGE, pCurrentPage); |
|
| 103 |
} |
|
| 104 |
if (pStructure != null) {
|
|
| 105 |
this.saveParameter(InternalViewPreferences.STRUCTURALUNIT, pStructure.getName()); |
|
| 106 |
} |
|
| 107 |
if (pStructProperties != null) {
|
|
| 108 |
this.saveParameter(InternalViewPreferences.STRUCTURALUNITPROPERTIES, StringUtils.join(pStructProperties, "\t")); |
|
| 109 |
} |
|
| 110 |
if (pProperties != null) {
|
|
| 111 |
this.saveParameter(InternalViewPreferences.PROPERTIES, StringUtils.join(pProperties, "\t")); |
|
| 112 |
} |
|
| 105 | 113 |
|
| 106 | 114 |
return true; |
| 107 | 115 |
} |
| tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 567) | ||
|---|---|---|
| 245 | 245 |
return TXMPreferences.getKeys(this.preferencesNodeQualifier); |
| 246 | 246 |
} |
| 247 | 247 |
|
| 248 |
/** |
|
| 249 |
* sets the value of the specified key in parameters, local result node or |
|
| 250 |
* default preferences nodes. |
|
| 251 |
* |
|
| 252 |
* @param key |
|
| 253 |
* @return |
|
| 254 |
*/ |
|
| 255 |
public void setParameterValue(String key, Object value) {
|
|
| 256 |
TXMPreferences.putLocal(this, key, value); |
|
| 257 |
} |
|
| 258 | 248 |
|
| 259 | 249 |
/** |
| 260 |
* sets the value of the specified key in parameters, local result node or |
|
| 261 |
* default preferences nodes. |
|
| 262 |
* |
|
| 263 |
* @param key |
|
| 264 |
* @return |
|
| 265 |
*/ |
|
| 266 |
public void setParameterValue(String key, List<?> values) {
|
|
| 267 |
TXMPreferences.putLocal(this, key, StringUtils.join(values, UNDERSCORE)); |
|
| 268 |
} |
|
| 269 |
|
|
| 270 |
/** |
|
| 271 | 250 |
* Gets the value of the specified key in parameters, local result node or |
| 272 | 251 |
* default preferences nodes. |
| 273 | 252 |
* |
| ... | ... | |
| 334 | 313 |
} |
| 335 | 314 |
|
| 336 | 315 |
|
| 316 |
|
|
| 337 | 317 |
/** |
| 338 | 318 |
* Stores the specified parameters pairs of key/value in a local node dedicated to the specified result. The node qualifier is generated by the <code>TXMResult.getUUID</code> method. |
| 319 |
* |
|
| 320 |
* @param key |
|
| 321 |
* @return |
|
| 322 |
*/ |
|
| 323 |
public void saveParameter(String key, List<?> values) {
|
|
| 324 |
TXMPreferences.putLocal(this, key, StringUtils.join(values, UNDERSCORE)); |
|
| 325 |
} |
|
| 326 |
|
|
| 327 |
|
|
| 328 |
/** |
|
| 329 |
* Stores the specified parameters pairs of key/value in a local node dedicated to the specified result. The node qualifier is generated by the <code>TXMResult.getUUID</code> method. |
|
| 339 | 330 |
* @param result |
| 340 | 331 |
* @param key |
| 341 | 332 |
* @param value |
| ... | ... | |
| 352 | 343 |
* |
| 353 | 344 |
* @return |
| 354 | 345 |
*/ |
| 346 |
// FIXME: need to implement here a generic way to save @Parameter |
|
| 355 | 347 |
public boolean saveParameters() {
|
| 356 | 348 |
return true; |
| 357 | 349 |
} |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/functions/diagnostic/Diagnostic.java (revision 567) | ||
|---|---|---|
| 676 | 676 |
|
| 677 | 677 |
@Override |
| 678 | 678 |
public boolean saveParameters() {
|
| 679 |
if (pMaxValue != null) this.setParameterValue(CQPPreferences.MAXVALUE, pMaxValue);
|
|
| 679 |
if (pMaxValue != null) this.saveParameter(CQPPreferences.MAXVALUE, pMaxValue);
|
|
| 680 | 680 |
return true; |
| 681 | 681 |
} |
| 682 | 682 |
} |
| tmp/org.txm.concordance.core/src/org/txm/concordance/core/functions/Concordance.java (revision 567) | ||
|---|---|---|
| 1552 | 1552 |
@Override |
| 1553 | 1553 |
public boolean saveParameters() {
|
| 1554 | 1554 |
|
| 1555 |
this.setParameterValue(ConcordancePreferences.TOP_INDEX, this.pTopIndex);
|
|
| 1556 |
this.setParameterValue(ConcordancePreferences.N_LINE_PER_PAGE, this.pNLinesPerPage);
|
|
| 1555 |
this.saveParameter(ConcordancePreferences.TOP_INDEX, this.pTopIndex);
|
|
| 1556 |
this.saveParameter(ConcordancePreferences.N_LINE_PER_PAGE, this.pNLinesPerPage);
|
|
| 1557 | 1557 |
|
| 1558 |
this.setParameterValue(ConcordancePreferences.LEFT_CONTEXT_SIZE, this.pLeftContextSize);
|
|
| 1559 |
this.setParameterValue(ConcordancePreferences.RIGHT_CONTEXT_SIZE, this.pRightContextSize);
|
|
| 1558 |
this.saveParameter(ConcordancePreferences.LEFT_CONTEXT_SIZE, this.pLeftContextSize);
|
|
| 1559 |
this.saveParameter(ConcordancePreferences.RIGHT_CONTEXT_SIZE, this.pRightContextSize);
|
|
| 1560 | 1560 |
|
| 1561 |
this.setParameterValue(ConcordancePreferences.LIMITCQL, this.pLimitCQL);
|
|
| 1561 |
this.saveParameter(ConcordancePreferences.LIMITCQL, this.pLimitCQL);
|
|
| 1562 | 1562 |
|
| 1563 |
this.setParameterValue(ConcordancePreferences.KEYWORD_VIEW_PROPERTIES, this.pViewKeywordProperties);
|
|
| 1563 |
this.saveParameter(ConcordancePreferences.KEYWORD_VIEW_PROPERTIES, this.pViewKeywordProperties);
|
|
| 1564 | 1564 |
|
| 1565 |
this.setParameterValue(ConcordancePreferences.LEFT_VIEW_PROPERTIES, this.pViewLeftProperties);
|
|
| 1565 |
this.saveParameter(ConcordancePreferences.LEFT_VIEW_PROPERTIES, this.pViewLeftProperties);
|
|
| 1566 | 1566 |
|
| 1567 |
this.setParameterValue(ConcordancePreferences.RIGHT_VIEW_PROPERTIES, this.pViewRightProperties);
|
|
| 1567 |
this.saveParameter(ConcordancePreferences.RIGHT_VIEW_PROPERTIES, this.pViewRightProperties);
|
|
| 1568 | 1568 |
|
| 1569 |
this.setParameterValue(ConcordancePreferences.KEYWORD_ANALYSIS_PROPERTIES, this.pAnalysisKeywordProperties);
|
|
| 1569 |
this.saveParameter(ConcordancePreferences.KEYWORD_ANALYSIS_PROPERTIES, this.pAnalysisKeywordProperties);
|
|
| 1570 | 1570 |
|
| 1571 |
this.setParameterValue(ConcordancePreferences.LEFT_ANALYSIS_PROPERTIES, this.pAnalysisLeftProperties);
|
|
| 1571 |
this.saveParameter(ConcordancePreferences.LEFT_ANALYSIS_PROPERTIES, this.pAnalysisLeftProperties);
|
|
| 1572 | 1572 |
|
| 1573 |
this.setParameterValue(ConcordancePreferences.RIGHT_ANALYSIS_PROPERTIES, this.pAnalysisRightProperties);
|
|
| 1573 |
this.saveParameter(ConcordancePreferences.RIGHT_ANALYSIS_PROPERTIES, this.pAnalysisRightProperties);
|
|
| 1574 | 1574 |
|
| 1575 |
this.setParameterValue(ConcordancePreferences.VIEW_REFERENCEPATTERN, this.pViewRefPattern);
|
|
| 1575 |
this.saveParameter(ConcordancePreferences.VIEW_REFERENCEPATTERN, this.pViewRefPattern);
|
|
| 1576 | 1576 |
|
| 1577 |
this.setParameterValue(ConcordancePreferences.ANALYSIS_REFERENCEPATTERN, pAnalysisRefPattern);
|
|
| 1577 |
this.saveParameter(ConcordancePreferences.ANALYSIS_REFERENCEPATTERN, pAnalysisRefPattern);
|
|
| 1578 | 1578 |
|
| 1579 | 1579 |
return true; |
| 1580 | 1580 |
} |
| tmp/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 567) | ||
|---|---|---|
| 840 | 840 |
public boolean saveParameters() {
|
| 841 | 841 |
// TODO Auto-generated method stub |
| 842 | 842 |
System.err.println("CA.saveParameters(): not yet implemented.");
|
| 843 |
this.setParameterValue(CAPreferences.FIRST_DIMENSION, pFirstDimension);
|
|
| 844 |
this.setParameterValue(CAPreferences.SECOND_DIMENSION, pSecondDimension);
|
|
| 843 |
this.saveParameter(CAPreferences.FIRST_DIMENSION, pFirstDimension);
|
|
| 844 |
this.saveParameter(CAPreferences.SECOND_DIMENSION, pSecondDimension);
|
|
| 845 | 845 |
return true; |
| 846 | 846 |
} |
| 847 | 847 |
|
Formats disponibles : Unified diff