jkeyes      2003/06/05 16:02:25

  Modified:    cli/src/java/org/apache/commons/cli Tag: cli_1_x
                        OptionGroup.java
  Log:
  . javadoc'd
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.8.2.3   +28 -1     
jakarta-commons/cli/src/java/org/apache/commons/cli/OptionGroup.java
  
  Index: OptionGroup.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli/OptionGroup.java,v
  retrieving revision 1.8.2.2
  retrieving revision 1.8.2.3
  diff -u -r1.8.2.2 -r1.8.2.3
  --- OptionGroup.java  4 Jun 2003 01:11:40 -0000       1.8.2.2
  +++ OptionGroup.java  5 Jun 2003 23:02:24 -0000       1.8.2.3
  @@ -65,10 +65,37 @@
    */
   public interface OptionGroup {
   
  -
  +    /**
  +     * Returns whether the OptionGroup contains an Option with
  +     * the specified name.
  +     * 
  +     * @param name
  +     *     the name of the Option to search for
  +     * 
  +     * @return boolean
  +     *     whether the OptionGroup contains the specified Option
  +     */
       boolean hasOption(String name);
       
  +    /**
  +     * Return the specified Option from the OptionGroup.
  +     * 
  +     * @param name
  +     *     the name of the Option to search for
  +     * 
  +     * @return Option
  +     *     the Option if it exists, otherwise null
  +     */
       Option getOption(String name);
       
  +    /**
  +     * Return whether this OptionGroup isValid.
  +     * 
  +     * @param line
  +     *     the CommandLine to validate with
  +     * 
  +     * @throws ParseException
  +     *     if the OptionGroup is not valid
  +     */
       void isValid(CommandLine line) throws ParseException;    
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to