@@ -0,0 +1,943 @@
+package edu.uw.apl.tupelo.store.tools;%0A%0Aimport java.io.IOException;%0Aimport java.util.Collection;%0A%0Aimport edu.uw.apl.tupelo.store.Store;%0Aimport edu.uw.apl.tupelo.model.ManagedDiskDescriptor;%0A%0A/**%0A * Various utilities for interrogation of a Tupelo store contents%0A */%0A%0Apublic class Utils %7B%0A%0A%09static ManagedDiskDescriptor locateDescriptor( Store s,%0A%09%09%09%09%09%09%09%09%09%09%09%09   String diskID,%0A%09%09%09%09%09%09%09%09%09%09%09%09   String sessionID )%0A%09%09throws IOException %7B%0A%09%09for( ManagedDiskDescriptor mdd : s.enumerate() ) %7B%0A%09%09%09if( mdd.getDiskID().equals( diskID ) &&%0A%09%09%09%09mdd.getSession().toString().equals( sessionID ) ) %7B%0A%09%09%09%09return mdd;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%09%0A%09static boolean isAttributePresent( Store s,%0A%09%09%09%09%09%09%09%09%09   ManagedDiskDescriptor mdd,%0A%09%09%09%09%09%09%09%09%09   String needle ) throws IOException %7B%0A%09%09Collection%3CString%3E haystack = s.listAttributes( mdd );%0A%09%09for( String attrName : haystack ) %7B%0A%09%09%09if( attrName.equals( needle ) )%0A%09%09%09%09return true;%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%7D%0A%0A// eof%0A%0A

store tool utilities to own source file, were in Base