KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > config > StandardDDImpl


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.config;
22
23 import javax.enterprise.deploy.model.*;
24 import org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider;
25
26 public class StandardDDImpl implements DDBean {
27
28     DDCommon proxy;
29
30     void setProxy(DDCommon proxy) {
31         this.proxy = proxy;
32         proxy.container = this;
33     }
34
35     public StandardDDImpl(DDCommon proxy) {
36         this.proxy = proxy;
37         proxy.container = this;
38     }
39
40     public String JavaDoc getXpath() {
41         return proxy.getXpath();
42     }
43
44     public DDBeanRoot getRoot() {
45         return proxy.getRoot();
46     }
47     
48     public DDBean[] getChildBean(String JavaDoc xpath) {
49         return proxy.getChildBean(xpath);
50     }
51     
52     public String JavaDoc[] getText(String JavaDoc xpath) {
53         return proxy.getText(xpath);
54     }
55     
56     public void addXpathListener(String JavaDoc xpath,XpathListener listener) {
57         proxy.addXpathListener(xpath,listener);
58     }
59     
60     public void removeXpathListener(String JavaDoc xpath,XpathListener listener) {
61         proxy.removeXpathListener(xpath,listener);
62     }
63     
64     public String JavaDoc getId() {
65         return proxy.getId();
66     }
67     
68     public String JavaDoc getText() {
69         return proxy.getText();
70     }
71     
72     public String JavaDoc[] getAttributeNames() {
73         return null;
74     }
75     
76     public String JavaDoc getAttributeValue(String JavaDoc name) {
77         return null;
78     }
79     
80     public ConfigBeanStorage[] getConfigBeans() {
81         return proxy.getConfigBeans();
82     }
83     
84     public J2eeModuleProvider getModuleProvider() {
85         return proxy.getModuleProvider();
86     }
87 }
88
Popular Tags