/** * Creates a new instance of an abstract option given its class name, * command line interface text and its purpose. * * @param name the name of this option * @param cliChar the command line interface text * @param purpose the text describing the purpose of this option */ public AbstractOption(String name, char cliChar, String purpose) { if (!nameIsLegal(name)) { throw new IllegalArgumentException("Illegal option name: " + name); } this.name = name; this.cliChar = cliChar; this.purpose = purpose; }
/** * Creates a new instance of an abstract option given its class name, * command line interface text and its purpose. * * @param name the name of this option * @param cliChar the command line interface text * @param purpose the text describing the purpose of this option */ public AbstractOption(String name, char cliChar, String purpose) { if (!nameIsLegal(name)) { throw new IllegalArgumentException("Illegal option name: " + name); } this.name = name; this.cliChar = cliChar; this.purpose = purpose; }