File Source: confirmcommentview.java

         /* 
    P/P   *  Method: net.sourceforge.pebble.web.view.impl.ConfirmCommentView__static_init
          */
     1  package net.sourceforge.pebble.web.view.impl;
     2  
     3  import net.sourceforge.pebble.web.view.HtmlView;
     4  import net.sourceforge.pebble.domain.Blog;
     5  import net.sourceforge.pebble.Constants;
     6  import net.sourceforge.pebble.api.confirmation.CommentConfirmationStrategy;
     7  
     8  /**
     9   * Represents the confir comment page.
    10   *
    11   * @author    Simon Brown
    12   */
         /* 
    P/P   *  Method: void net.sourceforge.pebble.web.view.impl.ConfirmCommentView()
          */
    13  public class ConfirmCommentView extends HtmlView {
    14  
    15    /**
    16     * Prepares the view for presentation.
    17     */
    18    public void prepare() {
             /* 
    P/P       *  Method: void prepare()
              * 
              *  Presumptions:
              *    net.sourceforge.pebble.web.view.impl.ConfirmCommentView:getModel(...)@19 != null
              */
    19      getModel().put("confirmationAction", "confirmComment.action");
    20    }
    21  
    22    /**
    23     * Gets the title of this view.
    24     *
    25     * @return the title as a String
    26     */
    27    public String getTitle() {
             /* 
    P/P       *  Method: String getTitle()
              * 
              *  Postconditions:
              *    return_value == null
              */
    28      return null;
    29    }
    30  
    31    /**
    32     * Gets the URI that this view represents.
    33     *
    34     * @return the URI as a String
    35     */
    36    public String getUri() {
             /* 
    P/P       *  Method: String getUri()
              * 
              *  Presumptions:
              *    net.sourceforge.pebble.web.model.Model:get(...)@37 != null
              *    net.sourceforge.pebble.web.view.impl.ConfirmCommentView:getModel(...)@37 != null
              *    net.sourceforge.pebble.domain.Blog:getCommentConfirmationStrategy(...)@38 != null
              * 
              *  Postconditions:
              *    init'ed(return_value)
              */
    37      Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    38      CommentConfirmationStrategy strategy = blog.getCommentConfirmationStrategy();
    39      return strategy.getUri();
    40    }
    41  
    42  }








SofCheck Inspector Build Version : 2.22510
confirmcommentview.java 2010-Jun-25 19:40:32
confirmcommentview.class 2010-Jul-19 20:23:38