//# 0 errors, 30 messages
//#
package net.sourceforge.pebble.web.view.impl;
    //#messagesview.java:1:1: class: net.sourceforge.pebble.web.view.impl.MessagesView
    //#messagesview.java:1:1: method: net.sourceforge.pebble.web.view.impl.MessagesView.net.sourceforge.pebble.web.view.impl.MessagesView__static_init

import net.sourceforge.pebble.web.view.HtmlView;

import java.util.List;
import java.util.Collections;

/**
 * Represents the messages page.
 *
 * @author    Simon Brown
 */
public class MessagesView extends HtmlView {
    //#messagesview.java:13: method: void net.sourceforge.pebble.web.view.impl.MessagesView.net.sourceforge.pebble.web.view.impl.MessagesView()
    //#messagesview.java:13: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.HtmlView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.MessagesView
    //#    method: void net.sourceforge.pebble.web.view.impl.MessagesView()
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.HtmlView()
    //#input(void net.sourceforge.pebble.web.view.impl.MessagesView()): this
    //#messagesview.java:13: end of method: void net.sourceforge.pebble.web.view.impl.MessagesView.net.sourceforge.pebble.web.view.impl.MessagesView()

  /**
   * Prepares the view for presentation.
   */
  public void prepare() {
    List list = (List)getModel().get("messages");
    //#messagesview.java:19: method: void net.sourceforge.pebble.web.view.impl.MessagesView.prepare()
    //#messagesview.java:19: Warning: method not available
    //#    -- call on Model net.sourceforge.pebble.web.view.impl.MessagesView:getModel()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.MessagesView
    //#    method: void prepare()
    //#    unanalyzed callee: Model net.sourceforge.pebble.web.view.impl.MessagesView:getModel()
    //#messagesview.java:19: Warning: method not available
    //#    -- call on Object net.sourceforge.pebble.web.model.Model:get(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.MessagesView
    //#    method: void prepare()
    //#    unanalyzed callee: Object net.sourceforge.pebble.web.model.Model:get(String)
    //#input(void prepare()): this
    //#presumption(void prepare()): net.sourceforge.pebble.web.view.impl.MessagesView:getModel(...)@19 != null
    Collections.reverse(list);
  }
    //#messagesview.java:21: end of method: void net.sourceforge.pebble.web.view.impl.MessagesView.prepare()

  /**
   * Gets the title of this view.
   *
   * @return the title as a String
   */
  public String getTitle() {
    return null;
    //#messagesview.java:29: method: String net.sourceforge.pebble.web.view.impl.MessagesView.getTitle()
    //#output(String getTitle()): return_value
    //#post(String getTitle()): return_value == null
    //#messagesview.java:29: end of method: String net.sourceforge.pebble.web.view.impl.MessagesView.getTitle()
  }

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

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