}
private int computeStatus(SourceResolver resolver) {
List validities = super.getValidities();
for (int i = 0; i < validities.size(); i++) {
SourceValidity validity = (SourceValidity) validities.get(i);
switch(validity.isValid()) {
case -1:
// invalid : stop examining
return -1;
case 1:
// valid : just continue to next source
break;
case 0:
// don't know : check with the new source
if (resolver == null) {
// we have no resolver : definitely don't know (need to have one)
return 0;
}
try {
Source newSrc = resolver.resolveURI((String) uris.get(i));
int value = validity.isValid(newSrc.getValidity());
resolver.release(newSrc);
if (value != 1) {
return -1;
}
} catch(IOException ioe) {