//# 0 errors, 31 messages
//#
/*
    //#helppageview.java:1:1: class: net.sourceforge.pebble.web.view.impl.HelpPageView
    //#helppageview.java:1:1: method: net.sourceforge.pebble.web.view.impl.HelpPageView.net.sourceforge.pebble.web.view.impl.HelpPageView__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.web.view.HtmlView;

/**
 * Represents a help page.
 *
 * @author    Simon Brown
 */
public class HelpPageView extends HtmlView {

  /** the name of the page to be displayed */
  private String name;

  public HelpPageView(String name) {
    //#helppageview.java:46: method: void net.sourceforge.pebble.web.view.impl.HelpPageView.net.sourceforge.pebble.web.view.impl.HelpPageView(String)
    //#helppageview.java:46: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.HtmlView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.HelpPageView
    //#    method: void net.sourceforge.pebble.web.view.impl.HelpPageView(String)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.HtmlView()
    //#input(void net.sourceforge.pebble.web.view.impl.HelpPageView(String)): name
    //#input(void net.sourceforge.pebble.web.view.impl.HelpPageView(String)): this
    //#output(void net.sourceforge.pebble.web.view.impl.HelpPageView(String)): this.name
    //#post(void net.sourceforge.pebble.web.view.impl.HelpPageView(String)): this.name == name
    //#post(void net.sourceforge.pebble.web.view.impl.HelpPageView(String)): init'ed(this.name)
    this.name = name;
  }
    //#helppageview.java:48: end of method: void net.sourceforge.pebble.web.view.impl.HelpPageView.net.sourceforge.pebble.web.view.impl.HelpPageView(String)

  /**
   * Gets the title of this view.
   *
   * @return the title as a String
   */
  public String getTitle() {
	return getLocalizedString("view.help");
    //#helppageview.java:56: method: String net.sourceforge.pebble.web.view.impl.HelpPageView.getTitle()
    //#helppageview.java:56: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.web.view.impl.HelpPageView:getLocalizedString(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.HelpPageView
    //#    method: String getTitle()
    //#    unanalyzed callee: String net.sourceforge.pebble.web.view.impl.HelpPageView:getLocalizedString(String)
    //#input(String getTitle()): this
    //#output(String getTitle()): return_value
    //#post(String getTitle()): init'ed(return_value)
    //#helppageview.java:56: end of method: String net.sourceforge.pebble.web.view.impl.HelpPageView.getTitle()
  }

  /**
   * Gets the URI that this view represents.
   *
   * @return the URI as a String
   */
  public String getUri() {
    return "/WEB-INF/help/" + name + ".jsp";
    //#helppageview.java:65: method: String net.sourceforge.pebble.web.view.impl.HelpPageView.getUri()
    //#input(String getUri()): this
    //#input(String getUri()): this.name
    //#output(String getUri()): return_value
    //#pre[2] (String getUri()): init'ed(this.name)
    //#post(String getUri()): return_value != null
    //#helppageview.java:65: end of method: String net.sourceforge.pebble.web.view.impl.HelpPageView.getUri()
  }

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