File Source: confirmtrackbackview.java
/*
P/P * Method: net.sourceforge.pebble.web.view.impl.ConfirmTrackBackView__static_init
*/
1 package net.sourceforge.pebble.web.view.impl;
2
3 import net.sourceforge.pebble.Constants;
4 import net.sourceforge.pebble.api.confirmation.TrackBackConfirmationStrategy;
5 import net.sourceforge.pebble.domain.Blog;
6 import net.sourceforge.pebble.web.view.HtmlView;
7
8 /**
9 * Represents the confirm TrackBack page.
10 *
11 * @author Simon Brown
12 */
/*
P/P * Method: void net.sourceforge.pebble.web.view.impl.ConfirmTrackBackView()
*/
13 public class ConfirmTrackBackView 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.ConfirmTrackBackView:getModel(...)@19 != null
*/
19 getModel().put("confirmationAction", "confirmTrackBack.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.ConfirmTrackBackView:getModel(...)@37 != null
* net.sourceforge.pebble.domain.Blog:getTrackBackConfirmationStrategy(...)@38 != null
*
* Postconditions:
* init'ed(return_value)
*/
37 Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
38 TrackBackConfirmationStrategy strategy = blog.getTrackBackConfirmationStrategy();
39 return strategy.getUri();
40 }
41
42 }
SofCheck Inspector Build Version : 2.22510
| confirmtrackbackview.java |
2010-Jun-25 19:40:32 |
| confirmtrackbackview.class |
2010-Jul-19 20:23:38 |