01: /* DDSteps - Data Driven JUnit Test Steps
02: * Copyright (C) 2006 Jayway AB
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License version 2.1 as published by the Free Software Foundation.
07: *
08: * This library is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, visit
15: * http://www.opensource.org/licenses/lgpl-license.php
16: */
17: package org.ddsteps.web.trail;
18:
19: import org.apache.commons.lang.Validate;
20:
21: /**
22: * Value object for one page in a trail.
23: *
24: * @author adamskogman
25: *
26: */
27: public class TrailPage {
28:
29: /**
30: * Property: Page name given by the "user", i.e. the test step.
31: */
32: protected String pageName;
33:
34: /**
35: * Property: Title of the page. Optional.
36: */
37: protected String pageTitle;
38:
39: /**
40: * Property: Encoding to use when writing file. Optional.
41: */
42: protected String encoding;
43:
44: /**
45: * Property: The page as a string
46: */
47: protected String pageAsString;
48:
49: /**
50: * @param pageName
51: * @param pageTitle
52: * @param encoding
53: * @param pageAsString
54: */
55: public TrailPage(String pageName, String pageTitle,
56: String encoding, String pageAsString) {
57: super ();
58: Validate.notEmpty(pageName,
59: "Argument pageName must not be empty.");
60: Validate.notNull(pageName,
61: "Argument pageAsString must not be null.");
62:
63: this.pageName = pageName;
64: this.pageTitle = pageTitle;
65: this.encoding = encoding;
66: this.pageAsString = pageAsString;
67: }
68:
69: }
|