CLIOption.java :  » Development » jfritz-0.7.2 » de » moonflower » jfritz » utils » Java Open Source

Java Open Source » Development » jfritz 0.7.2 
jfritz 0.7.2 » de » moonflower » jfritz » utils » CLIOption.java
/*
 * Created on 26.06.2005
 *  
 */
package de.moonflower.jfritz.utils;

public class CLIOption {

  private char shortOption;

  private String longOption;

  private String description;

  private String parameter;

  public CLIOption(char shortOption, String longOption, String parameter,
      String description) {
    this.shortOption = shortOption;
    this.longOption = longOption;
    this.parameter = parameter;
    this.description = description;
  }

  /**
   * @return Returns the description.
   */
  public String getDescription() {
    return description;
  }

  /**
   * @return Returns the longOption.
   */
  public String getLongOption() {
    return longOption;
  }

  /**
   * @return Returns the parameter.
   * @throws Exception
   */
  public String getParameter() {
    return parameter;
  }

  /**
   * @return Returns true if option has parameter.
   */
  public boolean hasParameter() {
    return (parameter != null);
  }

  /**
   * @return Returns the shortOption.
   */
  public char getShortOption() {
    return shortOption;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.