public String getGenericExcitationSourceID(int instrumentIndex, int lightSourceIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; String result = retrieve.getGenericExcitationSourceID(instrumentIndex, lightSourceIndex); if (result != null) return result; } } return null; }
public String getGenericExcitationSourceID(int instrumentIndex, int lightSourceIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; String result = retrieve.getGenericExcitationSourceID(instrumentIndex, lightSourceIndex); if (result != null) return result; } } return null; }
try { String id = src.getGenericExcitationSourceID(instrumentIndex, lightSource); if (id != null && id.trim().length() > 0) { lightSourceIds.add(id);