//# 0 errors, 28 messages
//#
/*
    //#publishblogentryview.java:1:1: class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
    //#publishblogentryview.java:1:1: method: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.view.impl;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.domain.BlogEntry;
import net.sourceforge.pebble.web.view.HtmlView;

/**
 * Represents a page allowing the user to publish/unpublish a blog entry.
 *
 * @author    Simon Brown
 */
public class PublishBlogEntryView extends HtmlView {
    //#publishblogentryview.java:43: method: void net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.net.sourceforge.pebble.web.view.impl.PublishBlogEntryView()
    //#publishblogentryview.java:43: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.HtmlView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
    //#    method: void net.sourceforge.pebble.web.view.impl.PublishBlogEntryView()
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.HtmlView()
    //#input(void net.sourceforge.pebble.web.view.impl.PublishBlogEntryView()): this
    //#publishblogentryview.java:43: end of method: void net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.net.sourceforge.pebble.web.view.impl.PublishBlogEntryView()

  /**
   * Gets the title of this view.
   *
   * @return the title as a String
   */
  public String getTitle() {
    BlogEntry blogEntry = (BlogEntry)getModel().get(Constants.BLOG_ENTRY_KEY);
    //#publishblogentryview.java:51: method: String net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.getTitle()
    //#publishblogentryview.java:51: Warning: method not available
    //#    -- call on Model net.sourceforge.pebble.web.view.impl.PublishBlogEntryView:getModel()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
    //#    method: String getTitle()
    //#    unanalyzed callee: Model net.sourceforge.pebble.web.view.impl.PublishBlogEntryView:getModel()
    //#publishblogentryview.java:51: Warning: method not available
    //#    -- call on Object net.sourceforge.pebble.web.model.Model:get(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
    //#    method: String getTitle()
    //#    unanalyzed callee: Object net.sourceforge.pebble.web.model.Model:get(String)
    //#input(String getTitle()): this
    //#output(String getTitle()): return_value
    //#presumption(String getTitle()): net.sourceforge.pebble.web.model.Model:get(...)@51 != null
    //#presumption(String getTitle()): net.sourceforge.pebble.web.view.impl.PublishBlogEntryView:getModel(...)@51 != null
    //#post(String getTitle()): init'ed(return_value)
    return blogEntry.getTitle();
    //#publishblogentryview.java:52: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.BlogEntry:getTitle()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
    //#    method: String getTitle()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.BlogEntry:getTitle()
    //#publishblogentryview.java:52: end of method: String net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.getTitle()
  }

  /**
   * Gets the URI that this view represents.
   *
   * @return the URI as a String
   */
  public String getUri() {
    return "/WEB-INF/jsp/publishBlogEntry.jsp";
    //#publishblogentryview.java:61: method: String net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.getUri()
    //#output(String getUri()): return_value
    //#post(String getUri()): return_value == &".WEB-INF.jsp.publishBlogEntry.jsp"
    //#publishblogentryview.java:61: end of method: String net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.getUri()
  }

}    //#output(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/impl/PublishBlogEntryView]
    //#output(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Dispatch_Table.getTitle()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Dispatch_Table.getUri()Ljava/lang/String;
    //#post(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/impl/PublishBlogEntryView] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Dispatch_Table.getTitle()Ljava/lang/String; == &getTitle
    //#post(net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init): __Dispatch_Table.getUri()Ljava/lang/String; == &getUri
    //#publishblogentryview.java:: end of method: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView.net.sourceforge.pebble.web.view.impl.PublishBlogEntryView__static_init
    //#publishblogentryview.java:: end of class: net.sourceforge.pebble.web.view.impl.PublishBlogEntryView
