01: package com.sun.portal.sra.config;
02:
03: public class Command implements XMLElement {
04:
05: public static final String ELEMENT_NAME = "COMMAND";
06: private Name name;
07: private CommandClass commandclass;
08: private View view;
09:
10: public String getElementName() {
11: return ELEMENT_NAME;
12: }
13:
14: private XMLElement parent;
15:
16: public XMLElement parent() {
17: return this .parent;
18: }
19:
20: void parent(XMLElement parent) {
21: this .parent = parent;
22: }
23:
24: public Name getName() {
25: return this .name;
26: }
27:
28: public void setName(Name pname) {
29: if (this .getName() != null) {
30: this .getName().parent(null);
31: }
32: this .name = pname;
33: this .getName().parent(this .parent());
34: }
35:
36: public CommandClass getCommandclass() {
37: return this .commandclass;
38: }
39:
40: public void setCommandclass(CommandClass pcommandclass) {
41: if (this .getCommandclass() != null) {
42: this .getCommandclass().parent(null);
43: }
44: this .commandclass = pcommandclass;
45: this .getCommandclass().parent(this .parent());
46: }
47:
48: public View getView() {
49: return this .view;
50: }
51:
52: public void setView(View pview) {
53: if (this.getView() != null) {
54: this.getView().parent(null);
55: }
56: this.view = pview;
57: this.getView().parent(this.parent());
58: }
59:
60: }
|