import java.io.IOException; public interface ScanType { String accessString = null; static String getName() { return "ScanType"; } static boolean validateAccessString(String accessString) { return accessString != null && !accessString.isEmpty(); } boolean execute() throws IOException, InterruptedException; public abstract String getAccessString(); }