KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > clientbeans > ClientContainer


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23  
24 /**
25  * This generated bean class ClientContainer matches the DTD element client-container
26  *
27  */

28
29 package com.sun.enterprise.config.clientbeans;
30
31 import org.w3c.dom.*;
32 import org.netbeans.modules.schema2beans.*;
33 import java.beans.*;
34 import java.util.*;
35 import java.io.*;
36 import java.io.Serializable JavaDoc;
37 import com.sun.enterprise.config.ConfigBean;
38 import com.sun.enterprise.config.ConfigException;
39 import com.sun.enterprise.config.StaleWriteConfigException;
40 import com.sun.enterprise.util.i18n.StringManager;
41
42 // BEGIN_NOI18N
43

44 public class ClientContainer extends ConfigBean implements Serializable JavaDoc
45 {
46
47     static Vector comparators = new Vector();
48     private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(4, 2, 0);
49
50     static public final String JavaDoc TARGET_SERVER = "TargetServer";
51     static public final String JavaDoc AUTH_REALM = "AuthRealm";
52     static public final String JavaDoc CLIENT_CREDENTIAL = "ClientCredential";
53     static public final String JavaDoc LOG_SERVICE = "LogService";
54     static public final String JavaDoc MESSAGE_SECURITY_CONFIG = "MessageSecurityConfig";
55     static public final String JavaDoc ELEMENT_PROPERTY = "ElementProperty";
56
57     public ClientContainer() {
58         this(null, Common.USE_DEFAULT_VALUES);
59     }
60
61     public ClientContainer(org.w3c.dom.Node JavaDoc doc, int options) {
62         this(Common.NO_DEFAULT_VALUES);
63         try {
64             initFromNode(doc, options);
65         }
66         catch (Schema2BeansException e) {
67             throw new RuntimeException JavaDoc(e);
68         }
69     }
70     protected void initFromNode(org.w3c.dom.Node JavaDoc doc, int options) throws Schema2BeansException
71     {
72         if (doc == null)
73         {
74             doc = GraphManager.createRootElementNode("client-container"); // NOI18N
75
if (doc == null)
76                 throw new Schema2BeansException(Common.getMessage(
77                     "CantCreateDOMRoot_msg", "client-container"));
78         }
79         Node n = GraphManager.getElementNode("client-container", doc); // NOI18N
80
if (n == null)
81             throw new Schema2BeansException(Common.getMessage(
82                 "DocRootNotInDOMGraph_msg", "client-container", doc.getFirstChild().getNodeName()));
83
84         this.graphManager.setXmlDocument(doc);
85
86         // Entry point of the createBeans() recursive calls
87
this.createBean(n, this.graphManager());
88         this.initialize(options);
89     }
90     public ClientContainer(int options)
91     {
92         super(comparators, runtimeVersion);
93         initOptions(options);
94     }
95     protected void initOptions(int options)
96     {
97         // The graph manager is allocated in the bean root
98
this.graphManager = new GraphManager(this);
99         this.createRoot("client-container", "ClientContainer", // NOI18N
100
Common.TYPE_1 | Common.TYPE_BEAN, ClientContainer.class);
101
102         // Properties (see root bean comments for the bean graph)
103
initPropertyTables(6);
104         this.createProperty("target-server", TARGET_SERVER,
105             Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY,
106             TargetServer.class);
107         this.createAttribute(TARGET_SERVER, "name", "Name",
108                         AttrProp.CDATA | AttrProp.REQUIRED,
109                         null, null);
110         this.createAttribute(TARGET_SERVER, "address", "Address",
111                         AttrProp.CDATA | AttrProp.REQUIRED,
112                         null, null);
113         this.createAttribute(TARGET_SERVER, "port", "Port",
114                         AttrProp.CDATA | AttrProp.REQUIRED,
115                         null, null);
116         this.createProperty("auth-realm", AUTH_REALM,
117             Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
118             AuthRealm.class);
119         this.createAttribute(AUTH_REALM, "name", "Name",
120                         AttrProp.CDATA | AttrProp.REQUIRED,
121                         null, null);
122         this.createAttribute(AUTH_REALM, "classname", "Classname",
123                         AttrProp.CDATA | AttrProp.REQUIRED,
124                         null, null);
125         this.createProperty("client-credential", CLIENT_CREDENTIAL,
126             Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
127             ClientCredential.class);
128         this.createAttribute(CLIENT_CREDENTIAL, "user-name", "UserName",
129                         AttrProp.CDATA | AttrProp.REQUIRED,
130                         null, null);
131         this.createAttribute(CLIENT_CREDENTIAL, "password", "Password",
132                         AttrProp.CDATA | AttrProp.REQUIRED,
133                         null, null);
134         this.createAttribute(CLIENT_CREDENTIAL, "realm", "Realm",
135                         AttrProp.CDATA | AttrProp.IMPLIED,
136                         null, null);
137         this.createProperty("log-service", LOG_SERVICE,
138             Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
139             LogService.class);
140         this.createAttribute(LOG_SERVICE, "file", "File",
141                         AttrProp.CDATA | AttrProp.IMPLIED,
142                         null, null);
143         this.createAttribute(LOG_SERVICE, "level", "Level",
144                         AttrProp.CDATA,
145                         null, "SEVERE");
146         this.createProperty("message-security-config", MESSAGE_SECURITY_CONFIG,
147             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
148             MessageSecurityConfig.class);
149         this.createAttribute(MESSAGE_SECURITY_CONFIG, "auth-layer", "AuthLayer",
150                         AttrProp.CDATA | AttrProp.REQUIRED,
151                         null, null);
152         this.createAttribute(MESSAGE_SECURITY_CONFIG, "default-provider", "DefaultProvider",
153                         AttrProp.CDATA | AttrProp.IMPLIED,
154                         null, null);
155         this.createAttribute(MESSAGE_SECURITY_CONFIG, "default-client-provider", "DefaultClientProvider",
156                         AttrProp.CDATA | AttrProp.IMPLIED,
157                         null, null);
158         this.createProperty("property", ELEMENT_PROPERTY,
159             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
160             ElementProperty.class);
161         this.createAttribute(ELEMENT_PROPERTY, "name", "Name",
162                         AttrProp.CDATA | AttrProp.REQUIRED,
163                         null, null);
164         this.createAttribute(ELEMENT_PROPERTY, "value", "Value",
165                         AttrProp.CDATA | AttrProp.REQUIRED,
166                         null, null);
167         this.createAttribute("send-password", "SendPassword",
168                         AttrProp.CDATA,
169                         null, "true");
170         this.initialize(options);
171     }
172
173     // Setting the default values of the properties
174
void initialize(int options) {
175
176     }
177
178     // This attribute is an array containing at least one element
179
public void setTargetServer(int index, TargetServer value) {
180         this.setValue(TARGET_SERVER, index, value);
181     }
182
183     // Get Method
184
public TargetServer getTargetServer(int index) {
185         return (TargetServer)this.getValue(TARGET_SERVER, index);
186     }
187
188     // This attribute is an array containing at least one element
189
public void setTargetServer(TargetServer[] value) {
190         this.setValue(TARGET_SERVER, value);
191     }
192
193     // Getter Method
194
public TargetServer[] getTargetServer() {
195         return (TargetServer[])this.getValues(TARGET_SERVER);
196     }
197
198     // Return the number of properties
199
public int sizeTargetServer() {
200         return this.size(TARGET_SERVER);
201     }
202
203     // Add a new element returning its index in the list
204
public int addTargetServer(TargetServer value)
205             throws ConfigException{
206         return addTargetServer(value, true);
207     }
208
209     // Add a new element returning its index in the list with a boolean flag
210
public int addTargetServer(TargetServer value, boolean overwrite)
211             throws ConfigException{
212         TargetServer old = getTargetServerByName(value.getName());
213         if(old != null) {
214             throw new ConfigException(StringManager.getManager(ClientContainer.class).getString("cannotAddDuplicate", "TargetServer"));
215         }
216         return this.addValue(TARGET_SERVER, value, overwrite);
217     }
218
219     //
220
// Remove an element using its reference
221
// Returns the index the element had in the list
222
//
223
public int removeTargetServer(TargetServer value){
224         return this.removeValue(TARGET_SERVER, value);
225     }
226
227     //
228
// Remove an element using its reference
229
// Returns the index the element had in the list
230
// with boolean overwrite
231
//
232
public int removeTargetServer(TargetServer value, boolean overwrite)
233             throws StaleWriteConfigException{
234         return this.removeValue(TARGET_SERVER, value, overwrite);
235     }
236
237     public TargetServer getTargetServerByName(String JavaDoc id) {
238      if (null != id) { id = id.trim(); }
239     TargetServer[] o = getTargetServer();
240      if (o == null) return null;
241
242      for (int i=0; i < o.length; i++) {
243          if(o[i].getAttributeValue(Common.convertName(ClientTags.NAME)).equals(id)) {
244              return o[i];
245          }
246      }
247
248         return null;
249         
250     }
251     // This attribute is optional
252
public void setAuthRealm(AuthRealm value) {
253         this.setValue(AUTH_REALM, value);
254     }
255
256     // Get Method
257
public AuthRealm getAuthRealm() {
258         return (AuthRealm)this.getValue(AUTH_REALM);
259     }
260
261     // This attribute is optional
262
public void setClientCredential(ClientCredential value) {
263         this.setValue(CLIENT_CREDENTIAL, value);
264     }
265
266     // Get Method
267
public ClientCredential getClientCredential() {
268         return (ClientCredential)this.getValue(CLIENT_CREDENTIAL);
269     }
270
271     // This attribute is optional
272
public void setLogService(LogService value) {
273         this.setValue(LOG_SERVICE, value);
274     }
275
276     // Get Method
277
public LogService getLogService() {
278         return (LogService)this.getValue(LOG_SERVICE);
279     }
280
281     // This attribute is an array, possibly empty
282
public void setMessageSecurityConfig(int index, MessageSecurityConfig value) {
283         this.setValue(MESSAGE_SECURITY_CONFIG, index, value);
284     }
285
286     // Get Method
287
public MessageSecurityConfig getMessageSecurityConfig(int index) {
288         return (MessageSecurityConfig)this.getValue(MESSAGE_SECURITY_CONFIG, index);
289     }
290
291     // This attribute is an array, possibly empty
292
public void setMessageSecurityConfig(MessageSecurityConfig[] value) {
293         this.setValue(MESSAGE_SECURITY_CONFIG, value);
294     }
295
296     // Getter Method
297
public MessageSecurityConfig[] getMessageSecurityConfig() {
298         return (MessageSecurityConfig[])this.getValues(MESSAGE_SECURITY_CONFIG);
299     }
300
301     // Return the number of properties
302
public int sizeMessageSecurityConfig() {
303         return this.size(MESSAGE_SECURITY_CONFIG);
304     }
305
306     // Add a new element returning its index in the list
307
public int addMessageSecurityConfig(MessageSecurityConfig value)
308             throws ConfigException{
309         return addMessageSecurityConfig(value, true);
310     }
311
312     // Add a new element returning its index in the list with a boolean flag
313
public int addMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
314             throws ConfigException{
315         MessageSecurityConfig old = getMessageSecurityConfigByAuthLayer(value.getAuthLayer());
316         if(old != null) {
317             throw new ConfigException(StringManager.getManager(ClientContainer.class).getString("cannotAddDuplicate", "MessageSecurityConfig"));
318         }
319         return this.addValue(MESSAGE_SECURITY_CONFIG, value, overwrite);
320     }
321
322     //
323
// Remove an element using its reference
324
// Returns the index the element had in the list
325
//
326
public int removeMessageSecurityConfig(MessageSecurityConfig value){
327         return this.removeValue(MESSAGE_SECURITY_CONFIG, value);
328     }
329
330     //
331
// Remove an element using its reference
332
// Returns the index the element had in the list
333
// with boolean overwrite
334
//
335
public int removeMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
336             throws StaleWriteConfigException{
337         return this.removeValue(MESSAGE_SECURITY_CONFIG, value, overwrite);
338     }
339
340     public MessageSecurityConfig getMessageSecurityConfigByAuthLayer(String JavaDoc id) {
341      if (null != id) { id = id.trim(); }
342     MessageSecurityConfig[] o = getMessageSecurityConfig();
343      if (o == null) return null;
344
345      for (int i=0; i < o.length; i++) {
346          if(o[i].getAttributeValue(Common.convertName(ClientTags.AUTH_LAYER)).equals(id)) {
347              return o[i];
348          }
349      }
350
351         return null;
352         
353     }
354     // This attribute is an array, possibly empty
355
public void setElementProperty(int index, ElementProperty value) {
356         this.setValue(ELEMENT_PROPERTY, index, value);
357     }
358
359     // Get Method
360
public ElementProperty getElementProperty(int index) {
361         return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
362     }
363
364     // This attribute is an array, possibly empty
365
public void setElementProperty(ElementProperty[] value) {
366         this.setValue(ELEMENT_PROPERTY, value);
367     }
368
369     // Getter Method
370
public ElementProperty[] getElementProperty() {
371         return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
372     }
373
374     // Return the number of properties
375
public int sizeElementProperty() {
376         return this.size(ELEMENT_PROPERTY);
377     }
378
379     // Add a new element returning its index in the list
380
public int addElementProperty(ElementProperty value)
381             throws ConfigException{
382         return addElementProperty(value, true);
383     }
384
385     // Add a new element returning its index in the list with a boolean flag
386
public int addElementProperty(ElementProperty value, boolean overwrite)
387             throws ConfigException{
388         ElementProperty old = getElementPropertyByName(value.getName());
389         if(old != null) {
390             throw new ConfigException(StringManager.getManager(ClientContainer.class).getString("cannotAddDuplicate", "ElementProperty"));
391         }
392         return this.addValue(ELEMENT_PROPERTY, value, overwrite);
393     }
394
395     //
396
// Remove an element using its reference
397
// Returns the index the element had in the list
398
//
399
public int removeElementProperty(ElementProperty value){
400         return this.removeValue(ELEMENT_PROPERTY, value);
401     }
402
403     //
404
// Remove an element using its reference
405
// Returns the index the element had in the list
406
// with boolean overwrite
407
//
408
public int removeElementProperty(ElementProperty value, boolean overwrite)
409             throws StaleWriteConfigException{
410         return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
411     }
412
413     public ElementProperty getElementPropertyByName(String JavaDoc id) {
414      if (null != id) { id = id.trim(); }
415     ElementProperty[] o = getElementProperty();
416      if (o == null) return null;
417
418      for (int i=0; i < o.length; i++) {
419          if(o[i].getAttributeValue(Common.convertName(ClientTags.NAME)).equals(id)) {
420              return o[i];
421          }
422      }
423
424         return null;
425         
426     }
427     /**
428     * Getter for SendPassword of the Element client-container
429     * @return the SendPassword of the Element client-container
430     */

431     public boolean isSendPassword() {
432         return toBoolean(getAttributeValue(ClientTags.SEND_PASSWORD));
433     }
434     /**
435     * Modify the SendPassword of the Element client-container
436     * @param v the new value
437     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
438     */

439     public void setSendPassword(boolean v, boolean overwrite) throws StaleWriteConfigException {
440         setAttributeValue(ClientTags.SEND_PASSWORD, ""+(v==true), overwrite);
441     }
442     /**
443     * Modify the SendPassword of the Element client-container
444     * @param v the new value
445     */

446     public void setSendPassword(boolean v) {
447         setAttributeValue(ClientTags.SEND_PASSWORD, ""+(v==true));
448     }
449     /**
450     * Get the default value of SendPassword from dtd
451     */

452     public static String JavaDoc getDefaultSendPassword() {
453         return "true".trim();
454     }
455     /**
456      * Create a new bean using it's default constructor.
457      * This does not add it to any bean graph.
458      */

459     public TargetServer newTargetServer() {
460         return new TargetServer();
461     }
462
463     /**
464      * Create a new bean using it's default constructor.
465      * This does not add it to any bean graph.
466      */

467     public AuthRealm newAuthRealm() {
468         return new AuthRealm();
469     }
470
471     /**
472      * Create a new bean using it's default constructor.
473      * This does not add it to any bean graph.
474      */

475     public ClientCredential newClientCredential() {
476         return new ClientCredential();
477     }
478
479     /**
480      * Create a new bean using it's default constructor.
481      * This does not add it to any bean graph.
482      */

483     public LogService newLogService() {
484         return new LogService();
485     }
486
487     /**
488      * Create a new bean using it's default constructor.
489      * This does not add it to any bean graph.
490      */

491     public MessageSecurityConfig newMessageSecurityConfig() {
492         return new MessageSecurityConfig();
493     }
494
495     /**
496      * Create a new bean using it's default constructor.
497      * This does not add it to any bean graph.
498      */

499     public ElementProperty newElementProperty() {
500         return new ElementProperty();
501     }
502
503     /**
504     * get the xpath representation for this element
505     * returns something like abc[@name='value'] or abc
506     * depending on the type of the bean
507     */

508     protected String JavaDoc getRelativeXPath() {
509         String JavaDoc ret = null;
510         ret = "client-container";
511         return (null != ret ? ret.trim() : null);
512     }
513
514     /*
515     * generic method to get default value from dtd
516     */

517     public static String JavaDoc getDefaultAttributeValue(String JavaDoc attr) {
518         if(attr == null) return null;
519         attr = attr.trim();
520         if(attr.equals(ClientTags.SEND_PASSWORD)) return "true".trim();
521     return null;
522     }
523     //
524
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
525         comparators.add(c);
526     }
527
528     //
529
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
530         comparators.remove(c);
531     }
532     //
533
// This method returns the root of the bean graph
534
// Each call creates a new bean graph from the specified DOM graph
535
//
536
public static ClientContainer createGraph(org.w3c.dom.Node JavaDoc doc) {
537         return new ClientContainer(doc, Common.NO_DEFAULT_VALUES);
538     }
539
540     public static ClientContainer createGraph(java.io.File JavaDoc f) throws java.io.IOException JavaDoc {
541         java.io.InputStream JavaDoc in = new java.io.FileInputStream JavaDoc(f);
542         try {
543             return createGraph(in, false);
544         } finally {
545             in.close();
546         }
547     }
548
549     public static ClientContainer createGraph(java.io.InputStream JavaDoc in) {
550         return createGraph(in, false);
551     }
552
553     public static ClientContainer createGraph(java.io.InputStream JavaDoc in, boolean validate) {
554         try {
555             Document doc = GraphManager.createXmlDocument(in, validate);
556             return createGraph(doc);
557         }
558         catch (Exception JavaDoc t) {
559             throw new RuntimeException JavaDoc(Common.getMessage(
560                 "DOMGraphCreateFailed_msg",
561                 t));
562         }
563     }
564
565     //
566
// This method returns the root for a new empty bean graph
567
//
568
public static ClientContainer createGraph() {
569         return new ClientContainer();
570     }
571
572     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
573     }
574
575     // Special serializer: output XML as serialization
576
private void writeObject(java.io.ObjectOutputStream JavaDoc out) throws java.io.IOException JavaDoc{
577         ByteArrayOutputStream baos = new ByteArrayOutputStream();
578         write(baos);
579         String JavaDoc str = baos.toString();;
580         // System.out.println("str='"+str+"'");
581
out.writeUTF(str);
582     }
583     // Special deserializer: read XML as deserialization
584
private void readObject(java.io.ObjectInputStream JavaDoc in) throws java.io.IOException JavaDoc, ClassNotFoundException JavaDoc{
585         try{
586             init(comparators, runtimeVersion);
587             String JavaDoc strDocument = in.readUTF();
588             // System.out.println("strDocument='"+strDocument+"'");
589
ByteArrayInputStream bais = new ByteArrayInputStream(strDocument.getBytes());
590             Document doc = GraphManager.createXmlDocument(bais, false);
591             initOptions(Common.NO_DEFAULT_VALUES);
592             initFromNode(doc, Common.NO_DEFAULT_VALUES);
593         }
594         catch (Schema2BeansException e) {
595             throw new RuntimeException JavaDoc(e);
596         }
597     }
598
599     public void _setSchemaLocation(String JavaDoc location) {
600         if (beanProp().getAttrProp("xsi:schemaLocation", true) == null) {
601             createAttribute("xmlns:xsi", "xmlns:xsi", AttrProp.CDATA | AttrProp.IMPLIED, null, "http://www.w3.org/2001/XMLSchema-instance");
602             setAttributeValue("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
603             createAttribute("xsi:schemaLocation", "xsi:schemaLocation", AttrProp.CDATA | AttrProp.IMPLIED, null, location);
604         }
605         setAttributeValue("xsi:schemaLocation", location);
606     }
607
608     public String JavaDoc _getSchemaLocation() {
609         if (beanProp().getAttrProp("xsi:schemaLocation", true) == null) {
610             createAttribute("xmlns:xsi", "xmlns:xsi", AttrProp.CDATA | AttrProp.IMPLIED, null, "http://www.w3.org/2001/XMLSchema-instance");
611             setAttributeValue("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
612             createAttribute("xsi:schemaLocation", "xsi:schemaLocation", AttrProp.CDATA | AttrProp.IMPLIED, null, null);
613         }
614         return getAttributeValue("xsi:schemaLocation");
615     }
616
617     // Dump the content of this bean returning it as a String
618
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
619         String JavaDoc s;
620         Object JavaDoc o;
621         org.netbeans.modules.schema2beans.BaseBean n;
622         str.append(indent);
623         str.append("TargetServer["+this.sizeTargetServer()+"]"); // NOI18N
624
for(int i=0; i<this.sizeTargetServer(); i++)
625         {
626             str.append(indent+"\t");
627             str.append("#"+i+":");
628             n = (org.netbeans.modules.schema2beans.BaseBean) this.getTargetServer(i);
629             if (n != null)
630                 n.dump(str, indent + "\t"); // NOI18N
631
else
632                 str.append(indent+"\tnull"); // NOI18N
633
this.dumpAttributes(TARGET_SERVER, i, str, indent);
634         }
635
636         str.append(indent);
637         str.append("AuthRealm"); // NOI18N
638
n = (org.netbeans.modules.schema2beans.BaseBean) this.getAuthRealm();
639         if (n != null)
640             n.dump(str, indent + "\t"); // NOI18N
641
else
642             str.append(indent+"\tnull"); // NOI18N
643
this.dumpAttributes(AUTH_REALM, 0, str, indent);
644
645         str.append(indent);
646         str.append("ClientCredential"); // NOI18N
647
n = (org.netbeans.modules.schema2beans.BaseBean) this.getClientCredential();
648         if (n != null)
649             n.dump(str, indent + "\t"); // NOI18N
650
else
651             str.append(indent+"\tnull"); // NOI18N
652
this.dumpAttributes(CLIENT_CREDENTIAL, 0, str, indent);
653
654         str.append(indent);
655         str.append("LogService"); // NOI18N
656
n = (org.netbeans.modules.schema2beans.BaseBean) this.getLogService();
657         if (n != null)
658             n.dump(str, indent + "\t"); // NOI18N
659
else
660             str.append(indent+"\tnull"); // NOI18N
661
this.dumpAttributes(LOG_SERVICE, 0, str, indent);
662
663         str.append(indent);
664         str.append("MessageSecurityConfig["+this.sizeMessageSecurityConfig()+"]"); // NOI18N
665
for(int i=0; i<this.sizeMessageSecurityConfig(); i++)
666         {
667             str.append(indent+"\t");
668             str.append("#"+i+":");
669             n = (org.netbeans.modules.schema2beans.BaseBean) this.getMessageSecurityConfig(i);
670             if (n != null)
671                 n.dump(str, indent + "\t"); // NOI18N
672
else
673                 str.append(indent+"\tnull"); // NOI18N
674
this.dumpAttributes(MESSAGE_SECURITY_CONFIG, i, str, indent);
675         }
676
677         str.append(indent);
678         str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
679
for(int i=0; i<this.sizeElementProperty(); i++)
680         {
681             str.append(indent+"\t");
682             str.append("#"+i+":");
683             n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
684             if (n != null)
685                 n.dump(str, indent + "\t"); // NOI18N
686
else
687                 str.append(indent+"\tnull"); // NOI18N
688
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
689         }
690
691     }
692     public String JavaDoc dumpBeanNode(){
693         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
694         str.append("ClientContainer\n"); // NOI18N
695
this.dump(str, "\n "); // NOI18N
696
return str.toString();
697     }}
698
699 // END_NOI18N
700

701
Popular Tags