commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli OptionGroup.java
Date Thu, 05 Jun 2003 23:02:25 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message