001: //$Header$
002: /*
003: * Licensed to the Apache Software Foundation (ASF) under one or more
004: * contributor license agreements. See the NOTICE file distributed with
005: * this work for additional information regarding copyright ownership.
006: * The ASF licenses this file to You under the Apache License, Version 2.0
007: * (the "License"); you may not use this file except in compliance with
008: * the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: *
018: */
019: package org.apache.jmeter.testelement;
020:
021: import java.io.Serializable;
022: import org.apache.jmeter.testelement.AbstractTestElement;
023: import org.apache.jorphan.logging.LoggingManager;
024: import org.apache.log.Logger;
025:
026: /**
027: * ReportPage
028: *
029: * @author Peter Lin
030: * @version $Id: ReportPage.java 493793 2007-01-07 18:19:27Z sebb $
031: */
032: public class ReportPage extends AbstractTestElement implements
033: Serializable {
034: private final static Logger log = LoggingManager
035: .getLoggerForClass();
036:
037: public static final String REPORT_PAGE_TITLE = "ReportPage.title";
038: public static final String REPORT_PAGE_INDEX = "ReportPage.index";
039: public static final String REPORT_PAGE_CSS = "ReportPage.css";
040: public static final String REPORT_PAGE_HEADER = "ReportPage.header";
041: public static final String REPORT_PAGE_FOOTER = "ReportPage.footer";
042: public static final String REPORT_PAGE_INTRO = "ReportPage.intro";
043:
044: /**
045: * No-arg constructor.
046: */
047: public ReportPage() {
048: }
049:
050: public static ReportPage createReportPage(String name) {
051: ReportPage page = new ReportPage();
052: return page;
053: }
054:
055: public String getTitle() {
056: return getPropertyAsString(REPORT_PAGE_TITLE);
057: }
058:
059: public void setTitle(String title) {
060: setProperty(REPORT_PAGE_TITLE, title);
061: }
062:
063: public boolean getIndex() {
064: return getPropertyAsBoolean(REPORT_PAGE_INDEX);
065: }
066:
067: public void setIndex(String makeIndex) {
068: setProperty(REPORT_PAGE_INDEX, makeIndex);
069: }
070:
071: public String getCSS() {
072: return getPropertyAsString(REPORT_PAGE_CSS);
073: }
074:
075: public void setCSS(String css) {
076: setProperty(REPORT_PAGE_CSS, css);
077: }
078:
079: public String getHeaderURL() {
080: return getPropertyAsString(REPORT_PAGE_HEADER);
081: }
082:
083: public void setHeaderURL(String url) {
084: setProperty(REPORT_PAGE_HEADER, url);
085: }
086:
087: public String getFooterURL() {
088: return getPropertyAsString(REPORT_PAGE_FOOTER);
089: }
090:
091: public void setFooterURL(String url) {
092: setProperty(REPORT_PAGE_FOOTER, url);
093: }
094:
095: public String getIntroduction() {
096: return getPropertyAsString(REPORT_PAGE_INTRO);
097: }
098:
099: public void setIntroduction(String intro) {
100: setProperty(REPORT_PAGE_INTRO, intro);
101: }
102:
103: }
|