Revision 41212 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureQuery.java
DefaultFeatureQuery.java | ||
---|---|---|
79 | 79 |
|
80 | 80 |
private List attributeNames = new ArrayList(); |
81 | 81 |
|
82 |
private List constantsAttributeNames = new ArrayList(); |
|
83 |
|
|
82 | 84 |
private Evaluator filter; |
83 | 85 |
|
84 | 86 |
/** |
... | ... | |
248 | 250 |
this.attributeNames.add(attributeName); |
249 | 251 |
} |
250 | 252 |
|
253 |
public boolean hasAttributeNames() { |
|
254 |
return !this.attributeNames.isEmpty(); |
|
255 |
} |
|
256 |
|
|
257 |
public void clearAttributeNames() { |
|
258 |
this.attributeNames = new ArrayList(); |
|
259 |
} |
|
260 |
|
|
251 | 261 |
public Evaluator getFilter() { |
252 | 262 |
return filter; |
253 | 263 |
} |
... | ... | |
442 | 452 |
this.pageSize = pageSize; |
443 | 453 |
} |
444 | 454 |
|
455 |
public String[] getConstantsAttributeNames() { |
|
456 |
return (String[])constantsAttributeNames.toArray(new String[constantsAttributeNames.size()]); |
|
457 |
} |
|
458 |
|
|
459 |
public void setConstantsAttributeNames(String[] constantsAttributeNames) { |
|
460 |
this.constantsAttributeNames.clear(); |
|
461 |
if (constantsAttributeNames != null){ |
|
462 |
for (int i=0 ; i<constantsAttributeNames.length ; i++){ |
|
463 |
this.constantsAttributeNames.add(constantsAttributeNames[i]); |
|
464 |
} |
|
465 |
} |
|
466 |
} |
|
467 |
|
|
468 |
public void addConstantAttributeName(String attributeName) { |
|
469 |
//If the attribute exists finish the method |
|
470 |
for (int i=0 ; i<constantsAttributeNames.size() ; i++){ |
|
471 |
if (constantsAttributeNames.get(i).equals(attributeName)){ |
|
472 |
return; |
|
473 |
} |
|
474 |
} |
|
475 |
this.constantsAttributeNames.add(attributeName); |
|
476 |
} |
|
477 |
|
|
478 |
public boolean hasConstantsAttributeNames() { |
|
479 |
return !this.constantsAttributeNames.isEmpty(); |
|
480 |
} |
|
481 |
|
|
482 |
public void clearConstantsAttributeNames() { |
|
483 |
this.constantsAttributeNames = new ArrayList(); |
|
484 |
} |
|
485 |
|
|
445 | 486 |
} |
Also available in: Unified diff