commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core WhileTag.java
Date Sat, 05 Oct 2002 04:30:18 GMT
dion        2002/10/04 21:30:18

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
                        WhileTag.java
  Log:
  Fix docs
  
  Revision  Changes    Path
  1.2       +18 -9     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/WhileTag.java
  
  Index: WhileTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/WhileTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WhileTag.java	5 Oct 2002 03:37:24 -0000	1.1
  +++ WhileTag.java	5 Oct 2002 04:30:18 -0000	1.2
  @@ -77,9 +77,11 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   
  -/** A tag which performs an iteration while the result of an XPath expression is true.
  +/**
  + * A tag which performs an iteration while the result of an expression is true.
    *
    * @author <a href="mailto:eric@ericalexander.net">Eric Alexander</a>
  + * @author dIon Gillard
    * @version $Revision$
    */
   public class WhileTag extends TagSupport {
  @@ -87,17 +89,23 @@
       /** The Log to which logging calls will be made. */
       private static final Log log = LogFactory.getLog(WhileTag.class);
   
  -    /**
  -     * The expression to use to determine if the while should continue
  -     */
  +    /** The expression to use to determine if the while should continue */
       private Expression test;
   
  +    /**
  +     * Create a new while tag
  +     */
       public WhileTag() {
       }
   
  -    // Tag interface
  -    //-------------------------------------------------------------------------
  -    public void doTag(XMLOutput output) throws Exception {
  +    /**
  +     * Tag interface
  +     * @param output destination for xml output
  +     * @throws MissingAttributeException when the test attribute is missing
  +     * @throws Exception for anything else
  +     */
  +    public void doTag(XMLOutput output) throws MissingAttributeException, 
  +    Exception {
           if (test != null) {
               while (test.evaluateAsBoolean(getContext())) {
                   if (log.isDebugEnabled()) {
  @@ -113,11 +121,12 @@
       // Properties
       //-------------------------------------------------------------------------
   
  -    /** Setter for the expression
  +    /**
  +     * Setter for the expression
  +     * @param e the expression to test
        */
       public void setTest(Expression e) {
           this.test = e;
       }
  -
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message