Created
June 29, 2013 12:55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Configuration { | |
private enum Priority { | |
HIGH, LOW; | |
} | |
@Option(name = "-i", usage = "input file name", required = true) | |
private String inputFileName; | |
@Option(name = "-o", usage = "output file name", required = true) | |
private String outputFileName; | |
@Option(name = "-p", usage = "process priority") | |
private Priority priority = Priority.HIGH; | |
public String getInputFileName() { | |
return inputFileName; | |
} | |
public String getOutputFileName() { | |
return outputFileName; | |
} | |
public Priority getPriority() { | |
return priority; | |
} | |
@Override | |
public String toString() { | |
return "Configuration{" + | |
"inputFileName='" + inputFileName + '\'' + | |
", outputFileName='" + outputFileName + '\'' + | |
", priority=" + priority + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment