public int getDatasetAnnotationRefCount(int datasetIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; int result = retrieve.getDatasetAnnotationRefCount(datasetIndex); if (result >= 0) return result; } } return -1; }
public int getDatasetAnnotationRefCount(int datasetIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; int result = retrieve.getDatasetAnnotationRefCount(datasetIndex); if (result >= 0) return result; } } return -1; }
int annotationRefCount = src.getDatasetAnnotationRefCount(i); for (int q=0; q<annotationRefCount; q++) { try {