home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / ccs_util.jar / com / commerceone / util / cmdline / CmdLineApp$RegisteredOption.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-12-09  |  1.8 KB  |  45 lines

  1. package com.commerceone.util.cmdline;
  2.  
  3. public class CmdLineApp$RegisteredOption {
  4.    protected String option;
  5.    protected String succExplain;
  6.    protected String verbExplain;
  7.    protected boolean isFlag;
  8.    protected boolean shouldDisplay;
  9.    // $FF: synthetic field
  10.    final CmdLineApp this$0;
  11.  
  12.    String getSuccinctExplanation() {
  13.       return this.succExplain;
  14.    }
  15.  
  16.    boolean getIsBoolean() {
  17.       return this.isFlag;
  18.    }
  19.  
  20.    CmdLineApp$RegisteredOption(CmdLineApp this$0, String opt, String succinctExplain, String verboseExplain, boolean isBoolean, boolean shouldDisplay) {
  21.       (this.this$0 = this$0).getClass();
  22.       this.option = opt;
  23.       this.succExplain = succinctExplain;
  24.       this.verbExplain = verboseExplain;
  25.       this.isFlag = isBoolean;
  26.       this.shouldDisplay = shouldDisplay;
  27.    }
  28.  
  29.    String getOption() {
  30.       return this.option;
  31.    }
  32.  
  33.    boolean getShouldDisplay() {
  34.       return this.shouldDisplay;
  35.    }
  36.  
  37.    public boolean equals(Object object) {
  38.       return object instanceof CmdLineApp$RegisteredOption && this.option.equals(((CmdLineApp$RegisteredOption)object).getOption());
  39.    }
  40.  
  41.    String getVerboseExplanation() {
  42.       return this.verbExplain;
  43.    }
  44. }
  45.