Révision 3681
TXM/trunk/bundles/org.txm.groovy.core/src/groovy/org/txm/macro/commands/CrossedPartitionBuilderMacro.groovy (revision 3681) | ||
---|---|---|
193 | 193 |
//Corpus corpus = CorpusManager.getCorpusManager().getCorpus(corpusName); |
194 | 194 |
|
195 | 195 |
// Recursing through the corpus and subcorpus |
196 |
process(corpus, 0, '', ''); |
|
196 |
process(corpus, 0, '', '', "_");
|
|
197 | 197 |
|
198 | 198 |
// Displaying the queries |
199 | 199 |
if (DEBUG) { |
... | ... | |
236 | 236 |
* @param tmpQuery the temporary query for creating subcorpus part |
237 | 237 |
* @param tmpPartName the temporary part name of the subcorpus part |
238 | 238 |
*/ |
239 |
protected void process(CQPCorpus corpus, int index, String tmpQuery, String tmpPartName) { |
|
239 |
protected void process(CQPCorpus corpus, int index, String tmpQuery, String tmpPartName, String propertySeparator) {
|
|
240 | 240 |
// End of array |
241 | 241 |
if (index >= STRUCTURAL_UNITS.size()) { |
242 | 242 |
|
... | ... | |
276 | 276 |
and = ' & '; |
277 | 277 |
} |
278 | 278 |
|
279 |
process(tmpSubcorpus, index + 1, (tmpQuery + and + '_.' + sup.getFullName() + '="' + supValue + '"'), tmpPartName + underscore + supValue); |
|
279 |
process(tmpSubcorpus, index + 1, (tmpQuery + and + '_.' + sup.getFullName() + '="' + supValue + '"'), tmpPartName + underscore + supValue, propertySeparator);
|
|
280 | 280 |
|
281 | 281 |
// Deleting the temporary subcorpus |
282 | 282 |
// TODO : bug : cette méthode ne supprime pas le corpus sans doute car il faut que le sous-corpus ne contienne pas d'autres sous-corpus ? le delete() en revanche fonctionne. |
Formats disponibles : Unified diff