KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > serverbeans > ModuleLogLevels


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 ModuleLogLevels matches the DTD element module-log-levels
26  *
27  */

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

43 public class ModuleLogLevels extends ConfigBean implements Serializable JavaDoc
44 {
45
46     static Vector comparators = new Vector();
47     private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(4, 2, 0);
48
49     static public final String JavaDoc ELEMENT_PROPERTY = "ElementProperty";
50
51     public ModuleLogLevels() {
52         this(Common.USE_DEFAULT_VALUES);
53     }
54
55     public ModuleLogLevels(int options)
56     {
57         super(comparators, runtimeVersion);
58         // Properties (see root bean comments for the bean graph)
59
initPropertyTables(1);
60         this.createProperty("property", ELEMENT_PROPERTY,
61             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
62             ElementProperty.class);
63         this.createAttribute(ELEMENT_PROPERTY, "name", "Name",
64                         AttrProp.CDATA | AttrProp.REQUIRED,
65                         null, null);
66         this.createAttribute(ELEMENT_PROPERTY, "value", "Value",
67                         AttrProp.CDATA | AttrProp.REQUIRED,
68                         null, null);
69         this.initialize(options);
70     }
71
72     // Setting the default values of the properties
73
void initialize(int options) {
74
75     }
76
77     // This attribute is an array, possibly empty
78
public void setElementProperty(int index, ElementProperty value) {
79         this.setValue(ELEMENT_PROPERTY, index, value);
80     }
81
82     // Get Method
83
public ElementProperty getElementProperty(int index) {
84         return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
85     }
86
87     // This attribute is an array, possibly empty
88
public void setElementProperty(ElementProperty[] value) {
89         this.setValue(ELEMENT_PROPERTY, value);
90     }
91
92     // Getter Method
93
public ElementProperty[] getElementProperty() {
94         return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
95     }
96
97     // Return the number of properties
98
public int sizeElementProperty() {
99         return this.size(ELEMENT_PROPERTY);
100     }
101
102     // Add a new element returning its index in the list
103
public int addElementProperty(ElementProperty value)
104             throws ConfigException{
105         return addElementProperty(value, true);
106     }
107
108     // Add a new element returning its index in the list with a boolean flag
109
public int addElementProperty(ElementProperty value, boolean overwrite)
110             throws ConfigException{
111         ElementProperty old = getElementPropertyByName(value.getName());
112         if(old != null) {
113             throw new ConfigException(StringManager.getManager(ModuleLogLevels.class).getString("cannotAddDuplicate", "ElementProperty"));
114         }
115         return this.addValue(ELEMENT_PROPERTY, value, overwrite);
116     }
117
118     //
119
// Remove an element using its reference
120
// Returns the index the element had in the list
121
//
122
public int removeElementProperty(ElementProperty value){
123         return this.removeValue(ELEMENT_PROPERTY, value);
124     }
125
126     //
127
// Remove an element using its reference
128
// Returns the index the element had in the list
129
// with boolean overwrite
130
//
131
public int removeElementProperty(ElementProperty value, boolean overwrite)
132             throws StaleWriteConfigException{
133         return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
134     }
135
136     public ElementProperty getElementPropertyByName(String JavaDoc id) {
137      if (null != id) { id = id.trim(); }
138     ElementProperty[] o = getElementProperty();
139      if (o == null) return null;
140
141      for (int i=0; i < o.length; i++) {
142          if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
143              return o[i];
144          }
145      }
146
147         return null;
148         
149     }
150     /**
151     * Getter for Root of the Element module-log-levels
152     * @return the Root of the Element module-log-levels
153     */

154     public String JavaDoc getRoot() {
155         return getAttributeValue(ServerTags.ROOT);
156     }
157     /**
158     * Modify the Root of the Element module-log-levels
159     * @param v the new value
160     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
161     */

162     public void setRoot(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
163         setAttributeValue(ServerTags.ROOT, v, overwrite);
164     }
165     /**
166     * Modify the Root of the Element module-log-levels
167     * @param v the new value
168     */

169     public void setRoot(String JavaDoc v) {
170         setAttributeValue(ServerTags.ROOT, v);
171     }
172     /**
173     * Get the default value of Root from dtd
174     */

175     public static String JavaDoc getDefaultRoot() {
176         return "INFO".trim();
177     }
178     /**
179     * Getter for Server of the Element module-log-levels
180     * @return the Server of the Element module-log-levels
181     */

182     public String JavaDoc getServer() {
183         return getAttributeValue(ServerTags.SERVER);
184     }
185     /**
186     * Modify the Server of the Element module-log-levels
187     * @param v the new value
188     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
189     */

190     public void setServer(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
191         setAttributeValue(ServerTags.SERVER, v, overwrite);
192     }
193     /**
194     * Modify the Server of the Element module-log-levels
195     * @param v the new value
196     */

197     public void setServer(String JavaDoc v) {
198         setAttributeValue(ServerTags.SERVER, v);
199     }
200     /**
201     * Get the default value of Server from dtd
202     */

203     public static String JavaDoc getDefaultServer() {
204         return "INFO".trim();
205     }
206     /**
207     * Getter for EjbContainer of the Element module-log-levels
208     * @return the EjbContainer of the Element module-log-levels
209     */

210     public String JavaDoc getEjbContainer() {
211         return getAttributeValue(ServerTags.EJB_CONTAINER);
212     }
213     /**
214     * Modify the EjbContainer of the Element module-log-levels
215     * @param v the new value
216     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
217     */

218     public void setEjbContainer(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
219         setAttributeValue(ServerTags.EJB_CONTAINER, v, overwrite);
220     }
221     /**
222     * Modify the EjbContainer of the Element module-log-levels
223     * @param v the new value
224     */

225     public void setEjbContainer(String JavaDoc v) {
226         setAttributeValue(ServerTags.EJB_CONTAINER, v);
227     }
228     /**
229     * Get the default value of EjbContainer from dtd
230     */

231     public static String JavaDoc getDefaultEjbContainer() {
232         return "INFO".trim();
233     }
234     /**
235     * Getter for CmpContainer of the Element module-log-levels
236     * @return the CmpContainer of the Element module-log-levels
237     */

238     public String JavaDoc getCmpContainer() {
239         return getAttributeValue(ServerTags.CMP_CONTAINER);
240     }
241     /**
242     * Modify the CmpContainer of the Element module-log-levels
243     * @param v the new value
244     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
245     */

246     public void setCmpContainer(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
247         setAttributeValue(ServerTags.CMP_CONTAINER, v, overwrite);
248     }
249     /**
250     * Modify the CmpContainer of the Element module-log-levels
251     * @param v the new value
252     */

253     public void setCmpContainer(String JavaDoc v) {
254         setAttributeValue(ServerTags.CMP_CONTAINER, v);
255     }
256     /**
257     * Get the default value of CmpContainer from dtd
258     */

259     public static String JavaDoc getDefaultCmpContainer() {
260         return "INFO".trim();
261     }
262     /**
263     * Getter for MdbContainer of the Element module-log-levels
264     * @return the MdbContainer of the Element module-log-levels
265     */

266     public String JavaDoc getMdbContainer() {
267         return getAttributeValue(ServerTags.MDB_CONTAINER);
268     }
269     /**
270     * Modify the MdbContainer of the Element module-log-levels
271     * @param v the new value
272     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
273     */

274     public void setMdbContainer(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
275         setAttributeValue(ServerTags.MDB_CONTAINER, v, overwrite);
276     }
277     /**
278     * Modify the MdbContainer of the Element module-log-levels
279     * @param v the new value
280     */

281     public void setMdbContainer(String JavaDoc v) {
282         setAttributeValue(ServerTags.MDB_CONTAINER, v);
283     }
284     /**
285     * Get the default value of MdbContainer from dtd
286     */

287     public static String JavaDoc getDefaultMdbContainer() {
288         return "INFO".trim();
289     }
290     /**
291     * Getter for WebContainer of the Element module-log-levels
292     * @return the WebContainer of the Element module-log-levels
293     */

294     public String JavaDoc getWebContainer() {
295         return getAttributeValue(ServerTags.WEB_CONTAINER);
296     }
297     /**
298     * Modify the WebContainer of the Element module-log-levels
299     * @param v the new value
300     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
301     */

302     public void setWebContainer(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
303         setAttributeValue(ServerTags.WEB_CONTAINER, v, overwrite);
304     }
305     /**
306     * Modify the WebContainer of the Element module-log-levels
307     * @param v the new value
308     */

309     public void setWebContainer(String JavaDoc v) {
310         setAttributeValue(ServerTags.WEB_CONTAINER, v);
311     }
312     /**
313     * Get the default value of WebContainer from dtd
314     */

315     public static String JavaDoc getDefaultWebContainer() {
316         return "INFO".trim();
317     }
318     /**
319     * Getter for Classloader of the Element module-log-levels
320     * @return the Classloader of the Element module-log-levels
321     */

322     public String JavaDoc getClassloader() {
323         return getAttributeValue(ServerTags.CLASSLOADER);
324     }
325     /**
326     * Modify the Classloader of the Element module-log-levels
327     * @param v the new value
328     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
329     */

330     public void setClassloader(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
331         setAttributeValue(ServerTags.CLASSLOADER, v, overwrite);
332     }
333     /**
334     * Modify the Classloader of the Element module-log-levels
335     * @param v the new value
336     */

337     public void setClassloader(String JavaDoc v) {
338         setAttributeValue(ServerTags.CLASSLOADER, v);
339     }
340     /**
341     * Get the default value of Classloader from dtd
342     */

343     public static String JavaDoc getDefaultClassloader() {
344         return "INFO".trim();
345     }
346     /**
347     * Getter for Configuration of the Element module-log-levels
348     * @return the Configuration of the Element module-log-levels
349     */

350     public String JavaDoc getConfiguration() {
351         return getAttributeValue(ServerTags.CONFIGURATION);
352     }
353     /**
354     * Modify the Configuration of the Element module-log-levels
355     * @param v the new value
356     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
357     */

358     public void setConfiguration(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
359         setAttributeValue(ServerTags.CONFIGURATION, v, overwrite);
360     }
361     /**
362     * Modify the Configuration of the Element module-log-levels
363     * @param v the new value
364     */

365     public void setConfiguration(String JavaDoc v) {
366         setAttributeValue(ServerTags.CONFIGURATION, v);
367     }
368     /**
369     * Get the default value of Configuration from dtd
370     */

371     public static String JavaDoc getDefaultConfiguration() {
372         return "INFO".trim();
373     }
374     /**
375     * Getter for Naming of the Element module-log-levels
376     * @return the Naming of the Element module-log-levels
377     */

378     public String JavaDoc getNaming() {
379         return getAttributeValue(ServerTags.NAMING);
380     }
381     /**
382     * Modify the Naming of the Element module-log-levels
383     * @param v the new value
384     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
385     */

386     public void setNaming(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
387         setAttributeValue(ServerTags.NAMING, v, overwrite);
388     }
389     /**
390     * Modify the Naming of the Element module-log-levels
391     * @param v the new value
392     */

393     public void setNaming(String JavaDoc v) {
394         setAttributeValue(ServerTags.NAMING, v);
395     }
396     /**
397     * Get the default value of Naming from dtd
398     */

399     public static String JavaDoc getDefaultNaming() {
400         return "INFO".trim();
401     }
402     /**
403     * Getter for Security of the Element module-log-levels
404     * @return the Security of the Element module-log-levels
405     */

406     public String JavaDoc getSecurity() {
407         return getAttributeValue(ServerTags.SECURITY);
408     }
409     /**
410     * Modify the Security of the Element module-log-levels
411     * @param v the new value
412     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
413     */

414     public void setSecurity(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
415         setAttributeValue(ServerTags.SECURITY, v, overwrite);
416     }
417     /**
418     * Modify the Security of the Element module-log-levels
419     * @param v the new value
420     */

421     public void setSecurity(String JavaDoc v) {
422         setAttributeValue(ServerTags.SECURITY, v);
423     }
424     /**
425     * Get the default value of Security from dtd
426     */

427     public static String JavaDoc getDefaultSecurity() {
428         return "INFO".trim();
429     }
430     /**
431     * Getter for Jts of the Element module-log-levels
432     * @return the Jts of the Element module-log-levels
433     */

434     public String JavaDoc getJts() {
435         return getAttributeValue(ServerTags.JTS);
436     }
437     /**
438     * Modify the Jts of the Element module-log-levels
439     * @param v the new value
440     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
441     */

442     public void setJts(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
443         setAttributeValue(ServerTags.JTS, v, overwrite);
444     }
445     /**
446     * Modify the Jts of the Element module-log-levels
447     * @param v the new value
448     */

449     public void setJts(String JavaDoc v) {
450         setAttributeValue(ServerTags.JTS, v);
451     }
452     /**
453     * Get the default value of Jts from dtd
454     */

455     public static String JavaDoc getDefaultJts() {
456         return "INFO".trim();
457     }
458     /**
459     * Getter for Jta of the Element module-log-levels
460     * @return the Jta of the Element module-log-levels
461     */

462     public String JavaDoc getJta() {
463         return getAttributeValue(ServerTags.JTA);
464     }
465     /**
466     * Modify the Jta of the Element module-log-levels
467     * @param v the new value
468     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
469     */

470     public void setJta(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
471         setAttributeValue(ServerTags.JTA, v, overwrite);
472     }
473     /**
474     * Modify the Jta of the Element module-log-levels
475     * @param v the new value
476     */

477     public void setJta(String JavaDoc v) {
478         setAttributeValue(ServerTags.JTA, v);
479     }
480     /**
481     * Get the default value of Jta from dtd
482     */

483     public static String JavaDoc getDefaultJta() {
484         return "INFO".trim();
485     }
486     /**
487     * Getter for Admin of the Element module-log-levels
488     * @return the Admin of the Element module-log-levels
489     */

490     public String JavaDoc getAdmin() {
491         return getAttributeValue(ServerTags.ADMIN);
492     }
493     /**
494     * Modify the Admin of the Element module-log-levels
495     * @param v the new value
496     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
497     */

498     public void setAdmin(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
499         setAttributeValue(ServerTags.ADMIN, v, overwrite);
500     }
501     /**
502     * Modify the Admin of the Element module-log-levels
503     * @param v the new value
504     */

505     public void setAdmin(String JavaDoc v) {
506         setAttributeValue(ServerTags.ADMIN, v);
507     }
508     /**
509     * Get the default value of Admin from dtd
510     */

511     public static String JavaDoc getDefaultAdmin() {
512         return "INFO".trim();
513     }
514     /**
515     * Getter for Deployment of the Element module-log-levels
516     * @return the Deployment of the Element module-log-levels
517     */

518     public String JavaDoc getDeployment() {
519         return getAttributeValue(ServerTags.DEPLOYMENT);
520     }
521     /**
522     * Modify the Deployment of the Element module-log-levels
523     * @param v the new value
524     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
525     */

526     public void setDeployment(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
527         setAttributeValue(ServerTags.DEPLOYMENT, v, overwrite);
528     }
529     /**
530     * Modify the Deployment of the Element module-log-levels
531     * @param v the new value
532     */

533     public void setDeployment(String JavaDoc v) {
534         setAttributeValue(ServerTags.DEPLOYMENT, v);
535     }
536     /**
537     * Get the default value of Deployment from dtd
538     */

539     public static String JavaDoc getDefaultDeployment() {
540         return "INFO".trim();
541     }
542     /**
543     * Getter for Verifier of the Element module-log-levels
544     * @return the Verifier of the Element module-log-levels
545     */

546     public String JavaDoc getVerifier() {
547         return getAttributeValue(ServerTags.VERIFIER);
548     }
549     /**
550     * Modify the Verifier of the Element module-log-levels
551     * @param v the new value
552     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
553     */

554     public void setVerifier(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
555         setAttributeValue(ServerTags.VERIFIER, v, overwrite);
556     }
557     /**
558     * Modify the Verifier of the Element module-log-levels
559     * @param v the new value
560     */

561     public void setVerifier(String JavaDoc v) {
562         setAttributeValue(ServerTags.VERIFIER, v);
563     }
564     /**
565     * Get the default value of Verifier from dtd
566     */

567     public static String JavaDoc getDefaultVerifier() {
568         return "INFO".trim();
569     }
570     /**
571     * Getter for Jaxr of the Element module-log-levels
572     * @return the Jaxr of the Element module-log-levels
573     */

574     public String JavaDoc getJaxr() {
575         return getAttributeValue(ServerTags.JAXR);
576     }
577     /**
578     * Modify the Jaxr of the Element module-log-levels
579     * @param v the new value
580     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
581     */

582     public void setJaxr(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
583         setAttributeValue(ServerTags.JAXR, v, overwrite);
584     }
585     /**
586     * Modify the Jaxr of the Element module-log-levels
587     * @param v the new value
588     */

589     public void setJaxr(String JavaDoc v) {
590         setAttributeValue(ServerTags.JAXR, v);
591     }
592     /**
593     * Get the default value of Jaxr from dtd
594     */

595     public static String JavaDoc getDefaultJaxr() {
596         return "INFO".trim();
597     }
598     /**
599     * Getter for Jaxrpc of the Element module-log-levels
600     * @return the Jaxrpc of the Element module-log-levels
601     */

602     public String JavaDoc getJaxrpc() {
603         return getAttributeValue(ServerTags.JAXRPC);
604     }
605     /**
606     * Modify the Jaxrpc of the Element module-log-levels
607     * @param v the new value
608     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
609     */

610     public void setJaxrpc(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
611         setAttributeValue(ServerTags.JAXRPC, v, overwrite);
612     }
613     /**
614     * Modify the Jaxrpc of the Element module-log-levels
615     * @param v the new value
616     */

617     public void setJaxrpc(String JavaDoc v) {
618         setAttributeValue(ServerTags.JAXRPC, v);
619     }
620     /**
621     * Get the default value of Jaxrpc from dtd
622     */

623     public static String JavaDoc getDefaultJaxrpc() {
624         return "INFO".trim();
625     }
626     /**
627     * Getter for Saaj of the Element module-log-levels
628     * @return the Saaj of the Element module-log-levels
629     */

630     public String JavaDoc getSaaj() {
631         return getAttributeValue(ServerTags.SAAJ);
632     }
633     /**
634     * Modify the Saaj of the Element module-log-levels
635     * @param v the new value
636     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
637     */

638     public void setSaaj(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
639         setAttributeValue(ServerTags.SAAJ, v, overwrite);
640     }
641     /**
642     * Modify the Saaj of the Element module-log-levels
643     * @param v the new value
644     */

645     public void setSaaj(String JavaDoc v) {
646         setAttributeValue(ServerTags.SAAJ, v);
647     }
648     /**
649     * Get the default value of Saaj from dtd
650     */

651     public static String JavaDoc getDefaultSaaj() {
652         return "INFO".trim();
653     }
654     /**
655     * Getter for Corba of the Element module-log-levels
656     * @return the Corba of the Element module-log-levels
657     */

658     public String JavaDoc getCorba() {
659         return getAttributeValue(ServerTags.CORBA);
660     }
661     /**
662     * Modify the Corba of the Element module-log-levels
663     * @param v the new value
664     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
665     */

666     public void setCorba(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
667         setAttributeValue(ServerTags.CORBA, v, overwrite);
668     }
669     /**
670     * Modify the Corba of the Element module-log-levels
671     * @param v the new value
672     */

673     public void setCorba(String JavaDoc v) {
674         setAttributeValue(ServerTags.CORBA, v);
675     }
676     /**
677     * Get the default value of Corba from dtd
678     */

679     public static String JavaDoc getDefaultCorba() {
680         return "INFO".trim();
681     }
682     /**
683     * Getter for Javamail of the Element module-log-levels
684     * @return the Javamail of the Element module-log-levels
685     */

686     public String JavaDoc getJavamail() {
687         return getAttributeValue(ServerTags.JAVAMAIL);
688     }
689     /**
690     * Modify the Javamail of the Element module-log-levels
691     * @param v the new value
692     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
693     */

694     public void setJavamail(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
695         setAttributeValue(ServerTags.JAVAMAIL, v, overwrite);
696     }
697     /**
698     * Modify the Javamail of the Element module-log-levels
699     * @param v the new value
700     */

701     public void setJavamail(String JavaDoc v) {
702         setAttributeValue(ServerTags.JAVAMAIL, v);
703     }
704     /**
705     * Get the default value of Javamail from dtd
706     */

707     public static String JavaDoc getDefaultJavamail() {
708         return "INFO".trim();
709     }
710     /**
711     * Getter for Jms of the Element module-log-levels
712     * @return the Jms of the Element module-log-levels
713     */

714     public String JavaDoc getJms() {
715         return getAttributeValue(ServerTags.JMS);
716     }
717     /**
718     * Modify the Jms of the Element module-log-levels
719     * @param v the new value
720     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
721     */

722     public void setJms(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
723         setAttributeValue(ServerTags.JMS, v, overwrite);
724     }
725     /**
726     * Modify the Jms of the Element module-log-levels
727     * @param v the new value
728     */

729     public void setJms(String JavaDoc v) {
730         setAttributeValue(ServerTags.JMS, v);
731     }
732     /**
733     * Get the default value of Jms from dtd
734     */

735     public static String JavaDoc getDefaultJms() {
736         return "INFO".trim();
737     }
738     /**
739     * Getter for Connector of the Element module-log-levels
740     * @return the Connector of the Element module-log-levels
741     */

742     public String JavaDoc getConnector() {
743         return getAttributeValue(ServerTags.CONNECTOR);
744     }
745     /**
746     * Modify the Connector of the Element module-log-levels
747     * @param v the new value
748     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
749     */

750     public void setConnector(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
751         setAttributeValue(ServerTags.CONNECTOR, v, overwrite);
752     }
753     /**
754     * Modify the Connector of the Element module-log-levels
755     * @param v the new value
756     */

757     public void setConnector(String JavaDoc v) {
758         setAttributeValue(ServerTags.CONNECTOR, v);
759     }
760     /**
761     * Get the default value of Connector from dtd
762     */

763     public static String JavaDoc getDefaultConnector() {
764         return "INFO".trim();
765     }
766     /**
767     * Getter for Jdo of the Element module-log-levels
768     * @return the Jdo of the Element module-log-levels
769     */

770     public String JavaDoc getJdo() {
771         return getAttributeValue(ServerTags.JDO);
772     }
773     /**
774     * Modify the Jdo of the Element module-log-levels
775     * @param v the new value
776     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
777     */

778     public void setJdo(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
779         setAttributeValue(ServerTags.JDO, v, overwrite);
780     }
781     /**
782     * Modify the Jdo of the Element module-log-levels
783     * @param v the new value
784     */

785     public void setJdo(String JavaDoc v) {
786         setAttributeValue(ServerTags.JDO, v);
787     }
788     /**
789     * Get the default value of Jdo from dtd
790     */

791     public static String JavaDoc getDefaultJdo() {
792         return "INFO".trim();
793     }
794     /**
795     * Getter for Cmp of the Element module-log-levels
796     * @return the Cmp of the Element module-log-levels
797     */

798     public String JavaDoc getCmp() {
799         return getAttributeValue(ServerTags.CMP);
800     }
801     /**
802     * Modify the Cmp of the Element module-log-levels
803     * @param v the new value
804     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
805     */

806     public void setCmp(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
807         setAttributeValue(ServerTags.CMP, v, overwrite);
808     }
809     /**
810     * Modify the Cmp of the Element module-log-levels
811     * @param v the new value
812     */

813     public void setCmp(String JavaDoc v) {
814         setAttributeValue(ServerTags.CMP, v);
815     }
816     /**
817     * Get the default value of Cmp from dtd
818     */

819     public static String JavaDoc getDefaultCmp() {
820         return "INFO".trim();
821     }
822     /**
823     * Getter for Util of the Element module-log-levels
824     * @return the Util of the Element module-log-levels
825     */

826     public String JavaDoc getUtil() {
827         return getAttributeValue(ServerTags.UTIL);
828     }
829     /**
830     * Modify the Util of the Element module-log-levels
831     * @param v the new value
832     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
833     */

834     public void setUtil(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
835         setAttributeValue(ServerTags.UTIL, v, overwrite);
836     }
837     /**
838     * Modify the Util of the Element module-log-levels
839     * @param v the new value
840     */

841     public void setUtil(String JavaDoc v) {
842         setAttributeValue(ServerTags.UTIL, v);
843     }
844     /**
845     * Get the default value of Util from dtd
846     */

847     public static String JavaDoc getDefaultUtil() {
848         return "INFO".trim();
849     }
850     /**
851     * Getter for ResourceAdapter of the Element module-log-levels
852     * @return the ResourceAdapter of the Element module-log-levels
853     */

854     public String JavaDoc getResourceAdapter() {
855         return getAttributeValue(ServerTags.RESOURCE_ADAPTER);
856     }
857     /**
858     * Modify the ResourceAdapter of the Element module-log-levels
859     * @param v the new value
860     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
861     */

862     public void setResourceAdapter(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
863         setAttributeValue(ServerTags.RESOURCE_ADAPTER, v, overwrite);
864     }
865     /**
866     * Modify the ResourceAdapter of the Element module-log-levels
867     * @param v the new value
868     */

869     public void setResourceAdapter(String JavaDoc v) {
870         setAttributeValue(ServerTags.RESOURCE_ADAPTER, v);
871     }
872     /**
873     * Get the default value of ResourceAdapter from dtd
874     */

875     public static String JavaDoc getDefaultResourceAdapter() {
876         return "INFO".trim();
877     }
878     /**
879     * Getter for Synchronization of the Element module-log-levels
880     * @return the Synchronization of the Element module-log-levels
881     */

882     public String JavaDoc getSynchronization() {
883         return getAttributeValue(ServerTags.SYNCHRONIZATION);
884     }
885     /**
886     * Modify the Synchronization of the Element module-log-levels
887     * @param v the new value
888     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
889     */

890     public void setSynchronization(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
891         setAttributeValue(ServerTags.SYNCHRONIZATION, v, overwrite);
892     }
893     /**
894     * Modify the Synchronization of the Element module-log-levels
895     * @param v the new value
896     */

897     public void setSynchronization(String JavaDoc v) {
898         setAttributeValue(ServerTags.SYNCHRONIZATION, v);
899     }
900     /**
901     * Get the default value of Synchronization from dtd
902     */

903     public static String JavaDoc getDefaultSynchronization() {
904         return "INFO".trim();
905     }
906     /**
907     * Getter for NodeAgent of the Element module-log-levels
908     * @return the NodeAgent of the Element module-log-levels
909     */

910     public String JavaDoc getNodeAgent() {
911         return getAttributeValue(ServerTags.NODE_AGENT);
912     }
913     /**
914     * Modify the NodeAgent of the Element module-log-levels
915     * @param v the new value
916     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
917     */

918     public void setNodeAgent(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
919         setAttributeValue(ServerTags.NODE_AGENT, v, overwrite);
920     }
921     /**
922     * Modify the NodeAgent of the Element module-log-levels
923     * @param v the new value
924     */

925     public void setNodeAgent(String JavaDoc v) {
926         setAttributeValue(ServerTags.NODE_AGENT, v);
927     }
928     /**
929     * Get the default value of NodeAgent from dtd
930     */

931     public static String JavaDoc getDefaultNodeAgent() {
932         return "INFO".trim();
933     }
934     /**
935     * Getter for SelfManagement of the Element module-log-levels
936     * @return the SelfManagement of the Element module-log-levels
937     */

938     public String JavaDoc getSelfManagement() {
939         return getAttributeValue(ServerTags.SELF_MANAGEMENT);
940     }
941     /**
942     * Modify the SelfManagement of the Element module-log-levels
943     * @param v the new value
944     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
945     */

946     public void setSelfManagement(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
947         setAttributeValue(ServerTags.SELF_MANAGEMENT, v, overwrite);
948     }
949     /**
950     * Modify the SelfManagement of the Element module-log-levels
951     * @param v the new value
952     */

953     public void setSelfManagement(String JavaDoc v) {
954         setAttributeValue(ServerTags.SELF_MANAGEMENT, v);
955     }
956     /**
957     * Get the default value of SelfManagement from dtd
958     */

959     public static String JavaDoc getDefaultSelfManagement() {
960         return "INFO".trim();
961     }
962     /**
963     * Getter for GroupManagementService of the Element module-log-levels
964     * @return the GroupManagementService of the Element module-log-levels
965     */

966     public String JavaDoc getGroupManagementService() {
967         return getAttributeValue(ServerTags.GROUP_MANAGEMENT_SERVICE);
968     }
969     /**
970     * Modify the GroupManagementService of the Element module-log-levels
971     * @param v the new value
972     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
973     */

974     public void setGroupManagementService(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
975         setAttributeValue(ServerTags.GROUP_MANAGEMENT_SERVICE, v, overwrite);
976     }
977     /**
978     * Modify the GroupManagementService of the Element module-log-levels
979     * @param v the new value
980     */

981     public void setGroupManagementService(String JavaDoc v) {
982         setAttributeValue(ServerTags.GROUP_MANAGEMENT_SERVICE, v);
983     }
984     /**
985     * Get the default value of GroupManagementService from dtd
986     */

987     public static String JavaDoc getDefaultGroupManagementService() {
988         return "INFO".trim();
989     }
990     /**
991     * Getter for ManagementEvent of the Element module-log-levels
992     * @return the ManagementEvent of the Element module-log-levels
993     */

994     public String JavaDoc getManagementEvent() {
995         return getAttributeValue(ServerTags.MANAGEMENT_EVENT);
996     }
997     /**
998     * Modify the ManagementEvent of the Element module-log-levels
999     * @param v the new value
1000    * @throws StaleWriteConfigException if overwrite is false and file changed on disk
1001    */

1002    public void setManagementEvent(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
1003        setAttributeValue(ServerTags.MANAGEMENT_EVENT, v, overwrite);
1004    }
1005    /**
1006    * Modify the ManagementEvent of the Element module-log-levels
1007    * @param v the new value
1008    */

1009    public void setManagementEvent(String JavaDoc v) {
1010        setAttributeValue(ServerTags.MANAGEMENT_EVENT, v);
1011    }
1012    /**
1013    * Get the default value of ManagementEvent from dtd
1014    */

1015    public static String JavaDoc getDefaultManagementEvent() {
1016        return "INFO".trim();
1017    }
1018    /**
1019     * Create a new bean using it's default constructor.
1020     * This does not add it to any bean graph.
1021     */

1022    public ElementProperty newElementProperty() {
1023        return new ElementProperty();
1024    }
1025
1026    /**
1027    * get the xpath representation for this element
1028    * returns something like abc[@name='value'] or abc
1029    * depending on the type of the bean
1030    */

1031    protected String JavaDoc getRelativeXPath() {
1032        String JavaDoc ret = null;
1033        ret = "module-log-levels";
1034        return (null != ret ? ret.trim() : null);
1035    }
1036
1037    /*
1038    * generic method to get default value from dtd
1039    */

1040    public static String JavaDoc getDefaultAttributeValue(String JavaDoc attr) {
1041        if(attr == null) return null;
1042        attr = attr.trim();
1043        if(attr.equals(ServerTags.ROOT)) return "INFO".trim();
1044        if(attr.equals(ServerTags.SERVER)) return "INFO".trim();
1045        if(attr.equals(ServerTags.EJB_CONTAINER)) return "INFO".trim();
1046        if(attr.equals(ServerTags.CMP_CONTAINER)) return "INFO".trim();
1047        if(attr.equals(ServerTags.MDB_CONTAINER)) return "INFO".trim();
1048        if(attr.equals(ServerTags.WEB_CONTAINER)) return "INFO".trim();
1049        if(attr.equals(ServerTags.CLASSLOADER)) return "INFO".trim();
1050        if(attr.equals(ServerTags.CONFIGURATION)) return "INFO".trim();
1051        if(attr.equals(ServerTags.NAMING)) return "INFO".trim();
1052        if(attr.equals(ServerTags.SECURITY)) return "INFO".trim();
1053        if(attr.equals(ServerTags.JTS)) return "INFO".trim();
1054        if(attr.equals(ServerTags.JTA)) return "INFO".trim();
1055        if(attr.equals(ServerTags.ADMIN)) return "INFO".trim();
1056        if(attr.equals(ServerTags.DEPLOYMENT)) return "INFO".trim();
1057        if(attr.equals(ServerTags.VERIFIER)) return "INFO".trim();
1058        if(attr.equals(ServerTags.JAXR)) return "INFO".trim();
1059        if(attr.equals(ServerTags.JAXRPC)) return "INFO".trim();
1060        if(attr.equals(ServerTags.SAAJ)) return "INFO".trim();
1061        if(attr.equals(ServerTags.CORBA)) return "INFO".trim();
1062        if(attr.equals(ServerTags.JAVAMAIL)) return "INFO".trim();
1063        if(attr.equals(ServerTags.JMS)) return "INFO".trim();
1064        if(attr.equals(ServerTags.CONNECTOR)) return "INFO".trim();
1065        if(attr.equals(ServerTags.JDO)) return "INFO".trim();
1066        if(attr.equals(ServerTags.CMP)) return "INFO".trim();
1067        if(attr.equals(ServerTags.UTIL)) return "INFO".trim();
1068        if(attr.equals(ServerTags.RESOURCE_ADAPTER)) return "INFO".trim();
1069        if(attr.equals(ServerTags.SYNCHRONIZATION)) return "INFO".trim();
1070        if(attr.equals(ServerTags.NODE_AGENT)) return "INFO".trim();
1071        if(attr.equals(ServerTags.SELF_MANAGEMENT)) return "INFO".trim();
1072        if(attr.equals(ServerTags.GROUP_MANAGEMENT_SERVICE)) return "INFO".trim();
1073        if(attr.equals(ServerTags.MANAGEMENT_EVENT)) return "INFO".trim();
1074    return null;
1075    }
1076    //
1077
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
1078        comparators.add(c);
1079    }
1080
1081    //
1082
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
1083        comparators.remove(c);
1084    }
1085    public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
1086    }
1087
1088    // Dump the content of this bean returning it as a String
1089
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
1090        String JavaDoc s;
1091        Object JavaDoc o;
1092        org.netbeans.modules.schema2beans.BaseBean n;
1093        str.append(indent);
1094        str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
1095
for(int i=0; i<this.sizeElementProperty(); i++)
1096        {
1097            str.append(indent+"\t");
1098            str.append("#"+i+":");
1099            n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
1100            if (n != null)
1101                n.dump(str, indent + "\t"); // NOI18N
1102
else
1103                str.append(indent+"\tnull"); // NOI18N
1104
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
1105        }
1106
1107    }
1108    public String JavaDoc dumpBeanNode(){
1109        StringBuffer JavaDoc str = new StringBuffer JavaDoc();
1110        str.append("ModuleLogLevels\n"); // NOI18N
1111
this.dump(str, "\n "); // NOI18N
1112
return str.toString();
1113    }}
1114
1115// END_NOI18N
1116

1117
Popular Tags