/** * Parses the arguments according to the specified options. The parsing fails when any of the required arguments are missing. * * @param args the command line arguments passed to the program */ public void parseArguments(String[] args) throws ParseException { parseArguments(args, true); }
/** * Gets the current date/time as an XMLGregorianCalendar with the default time zone in the default locale. * * @return the current date/time. */ public static XMLGregorianCalendar now() { return getXMLGregorianCalendarValue(null); }
/** * Constructs a new UploaderApp instance. */ public DownloaderApp() { argParser = new ArgumentParser("herd-downloader-app"); }
/** * Retrieves the argument as a String object, if any, of an option. * * @param option the option that we want argument value to be returned for * @param defaultValue is the default value to be returned if the option is not specified * * @return Value of the argument if option is set, and has an argument, otherwise defaultValue. */ public String getStringValue(Option option, String defaultValue) { String answer = getStringValue(option); return (answer != null) ? answer : defaultValue; }
/** * Retrieves the argument as an Integer object, if any, of an option. * * @param option the option that we want argument value to be returned for * @param defaultValue is the default value to be returned if the option is not specified * * @return Value of the argument if option is set, and has an argument, otherwise defaultValue. * @throws NumberFormatException if there are problems parsing the option value into the Integer type */ public Integer getIntegerValue(Option option, Integer defaultValue) throws NumberFormatException { Integer answer = getIntegerValue(option); return (answer != null) ? answer : defaultValue; }
/** * Retrieves the argument as a File object, if any, of an option. * * @param option the option that we want argument value to be returned for * @param defaultValue is the default value to be returned if the option is not specified * * @return Value of the argument if option is set, and has an argument, otherwise defaultValue. */ public File getFileValue(Option option, File defaultValue) { File answer = getFileValue(option); return (answer != null) ? answer : defaultValue; } }
/** * Do not invoke this method. This method is a test input for reflection related tests. */ @SuppressLogging private void mockMethodThatSuppressLogging() { }
@Override public void execute() throws Exception { HerdFileUtils.cleanDirectoryIgnoreException(testFile); } });
@Override public void execute() throws Exception { HerdFileUtils.deleteDirectoryIgnoreException(testFile); } });
@Override public Signature getSignature() { return new MockMethodSignature(); }
/** * Constructs a new application instance. */ RetentionExpirationExporterApp() { argParser = new ArgumentParser(APPLICATION_NAME); }
/** * Gets the current date/time as an XMLGregorianCalendar with the default time zone in the default locale. * * @return the current date/time. */ public static XMLGregorianCalendar now() { return getXMLGregorianCalendarValue(null); }
/** * Retrieves the argument as a String object, if any, of an option. * * @param option the option that we want argument value to be returned for * @param defaultValue is the default value to be returned if the option is not specified * * @return Value of the argument if option is set, and has an argument, otherwise defaultValue. */ public String getStringValue(Option option, String defaultValue) { String answer = getStringValue(option); return (answer != null) ? answer : defaultValue; }
/** * Retrieves the argument as a File object, if any, of an option. * * @param option the option that we want argument value to be returned for * @param defaultValue is the default value to be returned if the option is not specified * * @return Value of the argument if option is set, and has an argument, otherwise defaultValue. */ public File getFileValue(Option option, File defaultValue) { File answer = getFileValue(option); return (answer != null) ? answer : defaultValue; } }
/** * Parses the arguments according to the specified options. The parsing fails when any of the required arguments are missing. * * @param args the command line arguments passed to the program */ public void parseArguments(String[] args) throws ParseException { parseArguments(args, true); }
/** * This is a mock proceeding join point that has the suppress logging annotation present. */ @SuppressLogging public class MockProceedingJoinPointClassSuppressLogging extends MockProceedingJoinPoint { }
RetentionExpirationDestroyerApp() { argParser = new ArgumentParser(APPLICATION_NAME); }
/** * This is a mock proceeding join point that has the suppress logging annotation present. */ @SuppressLogging public class MockProceedingJoinPointClassSuppressLogging extends MockProceedingJoinPoint { }
@Override public ArgumentParser getArgumentParser() { return new ArgumentParser(TEST_APPLICATION_NAME); }
/** * Do not invoke this class. This class is a test input for reflection related tests. */ @SuppressLogging private class MockClassThatSuppressLogging extends MockProceedingJoinPoint { private void mockMethod() { return; } } }