2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.dialog.basic.config;
19
20 import org.apache.shale.dialog.basic.model.SubdialogState;
21
22 /***
23 * <p>{@link SubdialogStateImpl} is a basic implementation of
24 * {@link SubdialogState}.</p>
25 *
26 * @since 1.0.4
27 */
28
29 public final class SubdialogStateImpl extends AbstractState implements SubdialogState {
30
31
32
33
34
35 /***
36 * <p>The name of the subordinate dialog to be executed by this state.</p>
37 */
38 private String dialogName = null;
39
40
41
42
43
44 /***
45 * {@inheritDoc}
46 */
47 public String getDialogName() {
48
49 return this.dialogName;
50
51 }
52
53
54
55
56
57 /***
58 * <p>Render a printable version of this instance.</p>
59 *
60 * @return The printable version of this instance
61 */
62 public String toString() {
63
64 return "SubdialogState[dialog=" +
65 ((getDialog() != null) ? getDialog().getName() : "<null>") +
66 ",name=" + getName() +
67 ",dialogName=" + this.dialogName + "]";
68
69 }
70
71
72
73
74
75 /***
76 * <p>Set the name of the subordinate dialog to be executed
77 * by this state.</p>
78 *
79 * @param dialogName The subordinate dialog name
80 */
81 public void setDialogName(String dialogName) {
82
83 this.dialogName = dialogName;
84
85 }
86
87
88 }