public class Library extends LocalContribution
Contribution.Filter
Modifier and Type | Field and Description |
---|---|
static String |
propertiesFileName |
DELETION_FLAG, RESTART_FLAG, UPDATE_FLAGGED
Constructor and Description |
---|
Library(File folder) |
Modifier and Type | Method and Description |
---|---|
void |
addPackageList(Map<String,List<Library>> importToLibraryTable)
Add the packages provided by this library to the master list that maps
imports to specific libraries.
|
static List<File> |
discover(File folder) |
File[] |
getAndroidExports() |
File[] |
getAppletExports()
Applet exports don't go by platform, since by their nature applets are
meant to be cross-platform.
|
String[] |
getApplicationExportList(int platform,
String variant)
Returns the necessary exports for the specified platform.
|
File[] |
getApplicationExports(int platform,
String variant) |
String |
getClassPath() |
File |
getExamplesFolder() |
String |
getGroup() |
String |
getJarPath() |
String |
getLibraryPath() |
String |
getNativePath() |
String |
getPath() |
File |
getReferenceIndexFile()
Returns the object stored in the referenceFile field, which contains an
instance of the file object representing the index file of the reference
|
ContributionType |
getType() |
boolean |
hasExamples() |
boolean |
hasMultipleArch(int platform) |
static boolean |
hasMultipleArch(int platform,
List<Library> libraries) |
boolean |
hasReference()
Tests whether the reference's index file indicated by referenceFile exists.
|
static List<Library> |
list(File folder) |
static Library |
load(File folder) |
boolean |
supportsArch(int platform,
String variant) |
getFolder, getId, getImports, getLatestVersion, initLoader, isInstalled
equals, getAuthorList, getBenignVersion, getLastUpdated, getMaxRevision, getMinRevision, getName, getParagraph, getPrettyVersion, getSentence, getTypeName, getUrl, getVersion, hashCode, isCompatible, isFoundation, loadProperties, loadProperties, setPrettyVersion
public static final String propertiesFileName
public static Library load(File folder)
public void addPackageList(Map<String,List<Library>> importToLibraryTable)
importToLibraryTable
- mapping from package names to Library objectspublic boolean hasExamples()
public File getExamplesFolder()
public String getGroup()
public String getPath()
public String getLibraryPath()
public String getJarPath()
public String getClassPath()
public String getNativePath()
public File[] getAppletExports()
public File[] getApplicationExports(int platform, String variant)
public String[] getApplicationExportList(int platform, String variant)
public File[] getAndroidExports()
public boolean hasMultipleArch(int platform)
public boolean supportsArch(int platform, String variant)
public static boolean hasMultipleArch(int platform, List<Library> libraries)
public static List<File> discover(File folder)
public static List<Library> list(File folder)
public ContributionType getType()
getType
in class Contribution
public File getReferenceIndexFile()
public boolean hasReference()