01: /*
02: * Name.java
03: */
04: package com.sun.portal.sra.config;
05:
06: public class Name implements XMLPCDataElement {
07: /** The name of this class' corresponding XML element. (<i>"NAME"</i>) */
08: public static final String ELEMENT_NAME = "NAME";
09:
10: private String pcdata;
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 String getPCData() {
27: return this .pcdata;
28: }
29:
30: public void setPCData(String pcdata) {
31: this .pcdata = pcdata;
32: }
33:
34: public boolean add(String pcd) {
35: if (this .pcdata == null) {
36: this .pcdata = "";
37: }
38: this .pcdata += pcd;
39: return true;
40: }
41:
42: }
|