1 19 20 package org.netbeans.modules.form.project; 21 22 28 29 public class ClassSource { 30 31 public static final String JAR_SOURCE = "jar"; public static final String LIBRARY_SOURCE = "library"; public static final String PROJECT_SOURCE = "project"; 36 private String className; 37 private String [] cpTypes; 38 private String [] cpRoots; 39 40 45 public ClassSource(String className, String [] cpTypes, String [] cpRoots) { 46 this.className = className; 47 this.cpTypes = cpTypes; 48 this.cpRoots = cpRoots; 49 } 50 51 public String getClassName() { 52 return className; 53 } 54 55 public int getCPRootCount() { 56 return cpTypes != null ? cpTypes.length : 0; 57 } 58 59 public String getCPRootType(int index) { 60 return cpTypes[index]; 61 } 62 63 public String getCPRootName(int index) { 64 return cpRoots[index]; 65 } 66 67 } 68 | Popular Tags |