01: /*
02: * Sradesktop.java
03: */
04: package com.sun.portal.sra.config;
05:
06: public class SraDesktop implements XMLElement {
07: /** The name of this class' corresponding XML element. (<i>"SRADESKTOP"</i>) */
08: public static final String ELEMENT_NAME = "SRADESKTOP";
09:
10: private CommandList commandList;
11:
12: public String getElementName() {
13: return ELEMENT_NAME;
14: }
15:
16: private XMLElement parent;
17:
18: public XMLElement parent() {
19: return this .parent;
20: }
21:
22: void parent(XMLElement parent) {
23: this .parent = parent;
24: }
25:
26: public CommandList getCommandList() {
27: if (this .commandList == null) {
28: this .commandList = new CommandList();
29: this .getCommandList().parent(this );
30: }
31: return this .commandList;
32: }
33:
34: public void setCommandList(CommandList pcommandList) {
35: if (this .getCommandList() != null) {
36: this .getCommandList().parent(null);
37: }
38: this .commandList = pcommandList;
39: this .getCommandList().parent(this );
40: }
41:
42: public void add(Command elem) {
43: this.getCommandList().add(elem);
44: }
45:
46: }
|