KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > tests > j2eeserver > devmodule > TestJ2eeModule


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 package org.netbeans.tests.j2eeserver.devmodule;
21
22 import org.netbeans.modules.schema2beans.*;
23 import org.openide.filesystems.FileObject;
24
25 /**
26  *
27  * @author nn136682
28  */

29 public class TestJ2eeModule implements org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule {
30     Object JavaDoc moduleType;
31     FileObject archive;
32
33     /** Creates a new instance of TestJ2eeModule */
34     public TestJ2eeModule(Object JavaDoc type, FileObject archive) {
35         moduleType = type;
36         this.archive = archive;
37     }
38
39     public org.openide.filesystems.FileObject getArchive() {
40         return archive;
41     }
42     
43     public java.util.Iterator JavaDoc getArchiveContents() {
44         return new java.util.Vector JavaDoc(0).iterator();
45     }
46     
47     public org.openide.filesystems.FileObject getContentDirectory() {
48         return null;
49     }
50
51     public BaseBean getDeploymentDescriptor(String JavaDoc location) {
52         return null;
53     }
54
55     
56     public Object JavaDoc getModuleType() {
57         return moduleType;
58     }
59     
60     public String JavaDoc getModuleVersion() {
61         return "0.0.0";
62     }
63     
64     public String JavaDoc getUrl() {
65         return null;
66     }
67     
68     public void setUrl(String JavaDoc url) {
69         //noop
70
}
71     
72     public void addVersionListener(org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule.VersionListener ml) {
73     }
74     
75     public void removeVersionListener(org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule.VersionListener ml) {
76     }
77     
78 }
79
Popular Tags