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