KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > configbean > ToolSideError


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20
21 package org.netbeans.modules.j2ee.sun.share.configbean;
22
23 import java.util.ArrayList JavaDoc;
24 import java.util.Collection JavaDoc;
25
26 import javax.enterprise.deploy.model.DDBean JavaDoc;
27 /**
28  *
29  * @author vkraemer
30  */

31 public class ToolSideError extends BaseRoot {
32
33     /** Holds value of property message. */
34     private String JavaDoc message;
35     
36     /** Creates a new instance of ToolSideError */
37     public ToolSideError(String JavaDoc message) { // DDBean ddbean, Base parent) {
38
this.message = message;
39     }
40
41     /* ------------------------------------------------------------------------
42      * Persistence support. Loads DConfigBeans from previously saved Deployment
43      * plan file.
44      */

45     Collection JavaDoc getSnippets() {
46         Collection JavaDoc snippets = new ArrayList JavaDoc();
47         return snippets;
48     }
49
50     protected ConfigParser getParser() {
51         return null;
52     }
53     
54     boolean loadFromPlanFile(SunONEDeploymentConfiguration config) {
55         return false;
56     }
57     
58     /** Getter for property message.
59      * @return Value of property message.
60      *
61      */

62     public String JavaDoc getMessage() {
63         return message; // "there is a tool side error"; //this.message;
64
}
65     
66     /** Getter for property ddbeanXpath.
67      * @return Value of property ddbeanXpath.
68      *
69      */

70     public String JavaDoc getDdbeanXpath() {
71         return getDDBean().getXpath(); // this.ddbeanXpath;
72
}
73     
74     /** Getter for property ddbeanText.
75      * @return Value of property ddbeanText.
76      *
77      */

78     public String JavaDoc getDdbeanText() {
79         return getDDBean().getText(); // this.ddbeanText;
80
}
81     
82     public String JavaDoc generateDocType(ASDDVersion version) {
83         return "";
84     }
85
86     public String JavaDoc getHelpId() {
87         return "AS_CFG_ToolSideError"; //NOI18N
88
}
89
90 }
91
Popular Tags