KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > apisupport > project > universe > ExternalEntry


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.modules.apisupport.project.universe;
21
22 import java.io.File JavaDoc;
23 import org.netbeans.modules.apisupport.project.ManifestManager;
24
25 final class ExternalEntry extends AbstractEntryWithSources {
26
27     private final File JavaDoc basedir;
28     private final String JavaDoc cnb;
29     private final File JavaDoc clusterDir;
30     private final File JavaDoc jar;
31     private final String JavaDoc cpext;
32     private final File JavaDoc nbdestdir;
33     private final String JavaDoc releaseVersion;
34     private final String JavaDoc[] providedTokens;
35     private final ManifestManager.PackageExport[] publicPackages;
36     private final String JavaDoc[] friends;
37     private final boolean deprecated;
38     
39     public ExternalEntry(File JavaDoc basedir, String JavaDoc cnb, File JavaDoc clusterDir, File JavaDoc jar,
40             String JavaDoc cpext, File JavaDoc nbdestdir, String JavaDoc releaseVersion,
41             String JavaDoc[] providedTokens, ManifestManager.PackageExport[] publicPackages,
42             String JavaDoc[] friends, boolean deprecated) {
43         this.basedir = basedir;
44         this.cnb = cnb;
45         this.clusterDir = clusterDir;
46         this.jar = jar;
47         this.cpext = cpext;
48         this.nbdestdir = nbdestdir;
49         this.releaseVersion = releaseVersion;
50         this.providedTokens = providedTokens;
51         this.publicPackages = publicPackages;
52         this.friends = friends;
53         this.deprecated = deprecated;
54     }
55     
56     public File JavaDoc getSourceLocation() {
57         return basedir;
58     }
59     
60     public String JavaDoc getNetBeansOrgPath() {
61         return null;
62     }
63     
64     public File JavaDoc getJarLocation() {
65         return jar;
66     }
67     
68     public File JavaDoc getDestDir() {
69         return nbdestdir;
70     }
71     
72     public String JavaDoc getCodeNameBase() {
73         return cnb;
74     }
75     
76     public File JavaDoc getClusterDirectory() {
77         return clusterDir;
78     }
79     
80     public String JavaDoc getClassPathExtensions() {
81         return cpext;
82     }
83     
84     public String JavaDoc getReleaseVersion() {
85         return releaseVersion;
86     }
87     
88     public String JavaDoc[] getProvidedTokens() {
89         return providedTokens;
90     }
91     
92     public ManifestManager.PackageExport[] getPublicPackages() {
93         return publicPackages;
94     }
95     
96     public boolean isDeclaredAsFriend(String JavaDoc cnb) {
97         return isDeclaredAsFriend(friends, cnb);
98     }
99     
100     public boolean isDeprecated() {
101         return deprecated;
102     }
103     
104     public String JavaDoc toString() {
105         return "ExternalEntry[" + getSourceLocation() + "]"; // NOI18N
106
}
107     
108     
109 }
110
Popular Tags