Révision 2871
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/query/PartitionFocus.java (revision 2871) | ||
---|---|---|
106 | 106 |
public List<Part> getFocusedParts() { |
107 | 107 |
List<Part> focused = new ArrayList<Part>(modality.size()); |
108 | 108 |
for (int i = 0; i < partition.getPartsCount(); i++) { |
109 |
if (modality.contains(partition.getParts().get(i))) { |
|
109 |
if (modality.contains(partition.getParts().get(i).getName())) {
|
|
110 | 110 |
focused.add(partition.getParts().get(i)); |
111 | 111 |
} |
112 | 112 |
} |
... | ... | |
121 | 121 |
public List<Part> getNotFocusedParts() { |
122 | 122 |
List<Part> notFocused = new ArrayList<Part>(modality.size()); |
123 | 123 |
for (int i = 0; i < partition.getPartsCount(); i++) { |
124 |
if (!modality.contains(partition.getParts().get(i))) { |
|
124 |
if (!modality.contains(partition.getParts().get(i).getName())) {
|
|
125 | 125 |
notFocused.add(partition.getParts().get(i)); |
126 | 126 |
} |
127 | 127 |
} |
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/core/functions/selection/Selection.java (revision 2871) | ||
---|---|---|
259 | 259 |
public int getNumberOfWord(StructuralUnitProperty property, String value) { |
260 | 260 |
int nb = 0; |
261 | 261 |
for (String text : metadatasValuesPerText.keySet()) |
262 |
if (metadatasValuesPerText.get(text).get(property).equals(value)) |
|
262 |
if (metadatasValuesPerText.get(text).get(property.getName()).equals(value))
|
|
263 | 263 |
nb += numberOfWordsPerText.get(text); |
264 | 264 |
return nb; |
265 | 265 |
} |
... | ... | |
274 | 274 |
public int getNumberOfText(StructuralUnitProperty property, String value) { |
275 | 275 |
int nb = 0; |
276 | 276 |
for (String text : metadatasValuesPerText.keySet()) |
277 |
if (metadatasValuesPerText.get(text).get(property).equals(value)) |
|
277 |
if (metadatasValuesPerText.get(text).get(property.getName()).equals(value))
|
|
278 | 278 |
nb++; |
279 | 279 |
return nb; |
280 | 280 |
} |
Formats disponibles : Unified diff