01: /*
02: * Commandclass.java
03: */
04: package com.sun.portal.sra.config;
05:
06: public class CommandClass implements XMLPCDataElement {
07:
08: public static final String ELEMENT_NAME = "COMMANDCLASS";
09: private String pcdata;
10:
11: public String getElementName() {
12: return ELEMENT_NAME;
13: }
14:
15: private XMLElement parent;
16:
17: public XMLElement parent() {
18: return this .parent;
19: }
20:
21: void parent(XMLElement parent) {
22: this .parent = parent;
23: }
24:
25: public String getPCData() {
26: return this .pcdata;
27: }
28:
29: public void setPCData(String pcdata) {
30: this .pcdata = pcdata;
31: }
32:
33: public boolean add(String pcd) {
34: if (this .pcdata == null) {
35: this .pcdata = "";
36: }
37: this .pcdata += pcd;
38: return true;
39: }
40:
41: }
|