Package edu.harvard.hul.ois.fits.tools

Examples of edu.harvard.hul.ois.fits.tools.Tool


   */
  private List<ToolOutput> cullResults(List<ToolOutput> results) {
    List<ToolOutput> newResults = new ArrayList<ToolOutput>();
    for(ToolOutput result : results) {
      if(result != null) {
        Tool t = result.getTool();
        //if the tool can't identify files, or if it can and all identities are good
        if(!t.canIdentify() || (t.canIdentify() && allIdentitiesAreGood(result))) {
          newResults.add(result);
        }     
      }
    }
    return newResults;
View Full Code Here


  private boolean allIdentitiesAreGood(ToolOutput result) {
    List<ToolIdentity> identities = result.getFileIdentity();
    if(identities.size() == 0) {
      return false;
    }
    Tool t = result.getTool();
    for(ToolIdentity ident : identities) {
      if(t.isIdentityKnown(ident)) {
        continue;
      }
      else {
        return false;
      }
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.fits.tools.Tool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.