View Javadoc

1   /**
2    * 
3    */
4   package org.wvc.config.xml.pojos;
5   
6   import java.util.List;
7   
8   import com.thoughtworks.xstream.annotations.XStreamAlias;
9   import com.thoughtworks.xstream.annotations.XStreamImplicit;
10  
11  /**
12   * AppConfig root tag.
13   * 
14   * @author julian
15   *
16   */
17  @XStreamAlias("appConfig")
18  public class AppConfig {
19  
20  	/**
21  	 * Screen list.
22  	 */
23  	@XStreamImplicit(itemFieldName = "screen")
24  	private List<Screen> screens;
25  
26  	/**
27  	 * Initial screen name.
28  	 */
29  	@XStreamAlias("initialScreen")
30  	private InitialScreen initialScreen;
31  	
32  	/**
33  	 * Debug mode options.
34  	 */
35  	@XStreamAlias("debugMode")
36  	private DebugMode debugMode;
37  
38  	/**
39  	 * Application entry point.
40  	 */
41  	@XStreamAlias("entryPoint")
42  	private EntryPoint entryPoint;
43  	
44  	/**
45  	 * @param screens
46  	 * @param initialScreen
47  	 * @param debugMode
48  	 * @param entryPoint
49  	 */
50  	public AppConfig(List<Screen> screens, InitialScreen initialScreen, DebugMode debugMode, EntryPoint entryPoint) {
51  		super();
52  		this.screens = screens;
53  		this.initialScreen = initialScreen;
54  		this.debugMode = debugMode;
55  		this.entryPoint = entryPoint;
56  	}
57  
58  	/**
59  	 * @return the screens
60  	 */
61  	public List<Screen> getScreens() {
62  		return screens;
63  	}
64  
65  	/**
66  	 * @return the initialScreen
67  	 */
68  	public InitialScreen getInitialScreen() {
69  		return initialScreen;
70  	}
71  
72  	/**
73  	 * @return the debugMode
74  	 */
75  	public DebugMode getDebugMode() {
76  		return debugMode;
77  	}
78  
79  	/**
80  	 * @return the entryPoint
81  	 */
82  	public EntryPoint getEntryPoint() {
83  		return entryPoint;
84  	}
85  	
86  }