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 NetBeansOrgEntry extends AbstractEntryWithSources { 26 27 private final File nball; 28 private final String cnb; 29 private final String path; 30 private final File cluster; 31 private final String module; 32 private final String cpext; 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 NetBeansOrgEntry(File nball, String cnb, String path, File cluster, 40 String module, String cpext, String releaseVersion, 41 String [] providedTokens, ManifestManager.PackageExport[] publicPackages, 42 String [] friends, boolean deprecated) { 43 this.nball = nball; 44 this.cnb = cnb; 45 this.path = path; 46 this.cluster = cluster; 47 this.module = module; 48 this.cpext = cpext; 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 new File (nball, path.replace('/', File.separatorChar)); 58 } 59 60 public String getNetBeansOrgPath() { 61 return path; 62 } 63 64 public File getJarLocation() { 65 return new File (getClusterDirectory(), module.replace('/', File.separatorChar)); 66 } 67 68 public File getDestDir() { 69 return new File (nball, ModuleList.DEST_DIR_IN_NETBEANS_ORG); 70 } 71 72 public String getCodeNameBase() { 73 return cnb; 74 } 75 76 public File getClusterDirectory() { 77 return cluster; 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 "NetBeansOrgEntry[" + getSourceLocation() + "]"; } 107 108 } 109 | Popular Tags |