public class JProjectLibraries extends HashStructureAdapter
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DATA_KEY
Key for identifying JProjectLibraries table in HashStructure 
 | 
static java.lang.String | 
EXPORTS
HashStructure key for exported JLibrary references 
 | 
static java.lang.String | 
JDK_NAME
HashStructure key for JDK reference 
 | 
static java.lang.String | 
LIB_LIST
HashStructure key for internal Library definitions 
 | 
static java.lang.String | 
LIBRARIES
HashStructure key for JLibrary references 
 | 
static java.lang.String | 
MODULE_PATH_LIBRARIES
HashStructure key for module path libraries. 
 | 
static java.lang.String | 
OVERRIDE_APP_LIBS
HashStructure key for library precedence. 
 | 
_hash| Constructor and Description | 
|---|
JProjectLibraries(HashStructure hash)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addLibrary(java.lang.Object id)
Add an exported JLibrary identified by an ID to the list of referenced
 JLibrary instances. 
 | 
boolean | 
addLibrary(java.lang.Object id,
          boolean export)
Add a JLibrary identified by an ID to the list of referenced JLibrary
 instances. 
 | 
boolean | 
addLibrary(java.lang.Object id,
          boolean isExported,
          boolean isModulePathLibrary)
Add a JLibrary identified by an ID to the list of referenced JLibrary
 instances. 
 | 
void | 
clearLibraries()
Remove all libraries including exported and module path libraries. 
 | 
JLibrary[] | 
getClassPathLibraries()
Get an array of all class path JLibrary instances. 
 | 
JLibrary[] | 
getExports()
Get an array of all exported JLibrary instances. 
 | 
static JProjectLibraries | 
getInstance(PropertyStorage prj)
Get an instance of JProjectLibraries rooted in the given PropertyStorage. 
 | 
JDK | 
getJDK()
Get the referenced JDK, else the default installed JDK. 
 | 
VersionNumber | 
getJdkVersionNumber()
Get the version number of the JDK. 
 | 
JLibrary[] | 
getLibraries()
Get an array of all referenced JLibrary instances. 
 | 
java.lang.String[] | 
getLibraryList()  | 
JLibrary[] | 
getModulePathLibraries()
Get an array of all module path JLibrary instances. 
 | 
boolean | 
getOverrideApplicationLibraries()  | 
JProjectLibraryList | 
getProjectLibraryList()
Get a LibraryList of all internal Library definitions. 
 | 
boolean | 
hasExport(java.lang.Object id)  | 
boolean | 
hasLibrary(java.lang.Object id)  | 
boolean | 
hasModulePathLibrary(java.lang.Object id)  | 
boolean | 
removeLibrary(java.lang.Object id)
Remove a JLibrary identified by an ID from the list of referenced JLibrary
 instances. 
 | 
JDK | 
resolveJDK(java.lang.Object id)
Resolve a JDK ID to the associated JDK. 
 | 
JLibrary | 
resolveLibrary(java.lang.Object id)
Resolve a JLibrary ID to the associated JLibrary. 
 | 
void | 
setExports(JLibrary[] exports)
Set the array of all exported JLibrary instances. 
 | 
void | 
setJDK(JDK jdk)
Set the referenced JDK. 
 | 
void | 
setLibraries(JLibrary[] newLibs)
Set the array of all referenced JLibrary instances. 
 | 
void | 
setModulePathLibraries(JLibrary[] modulePathLibraries)
Set the array of all module path JLibrary instances. 
 | 
void | 
setOverrideApplicationLibraries(boolean override)  | 
void | 
setProjectLibraryList(JProjectLibraryList newList)
Set the LibraryList of all internal Library definitions. 
 | 
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic static final java.lang.String DATA_KEY
public static final java.lang.String JDK_NAME
public static final java.lang.String LIBRARIES
public static final java.lang.String LIB_LIST
public static final java.lang.String EXPORTS
public static final java.lang.String MODULE_PATH_LIBRARIES
public static final java.lang.String OVERRIDE_APP_LIBS
public JProjectLibraries(HashStructure hash)
hash - HashStructure in which to read/write values.public static JProjectLibraries getInstance(PropertyStorage prj)
prj - the PropertyStorage in which to establish a HashStructure.public JDK getJDK()
public void setJDK(JDK jdk)
jdk - the JDK for which a reference is to be persisted.public VersionNumber getJdkVersionNumber()
public java.lang.String[] getLibraryList()
public JLibrary[] getLibraries()
getClassPathLibraries(), 
getModulePathLibraries()public boolean hasLibrary(java.lang.Object id)
id - the ID of a JLibrary.public void setLibraries(JLibrary[] newLibs)
addLibrary(Object,boolean,boolean) and
 removeLibrary(Object) instead for updating library lists. When using
 this method, the caller is responsible for calling setModulePathLibraries(JLibrary[])
 and setExports(JLibrary[]) as appropriate to keep the lists in sync.newLibs - an array of JLibrary to be referred to.public JLibrary[] getExports()
public boolean hasExport(java.lang.Object id)
id - the ID of a JLibrary.public void setExports(JLibrary[] exports)
addLibrary(Object,boolean,boolean) and
 removeLibrary(Object) instead for updating library lists. When using
 this method, the caller is responsible for calling setLibraries(JLibrary[])
 and setModulePathLibraries(JLibrary[]) as appropriate to keep the lists in sync.exports - an array of JLibrary to be exported.public JLibrary[] getModulePathLibraries()
getClassPathLibraries(), 
getLibraries()public boolean hasModulePathLibrary(java.lang.Object id)
id - the ID of a JLibrary.public void setModulePathLibraries(JLibrary[] modulePathLibraries)
addLibrary(Object,boolean,boolean) and
 removeLibrary(Object) instead for updating library lists. When using
 this method, the caller is responsible for calling setLibraries(JLibrary[])
 and setExports(JLibrary[]) as appropriate to keep the lists in sync.modulePathLibraries - an array of module JLibrary's.public JLibrary[] getClassPathLibraries()
getLibraries(), 
getModulePathLibraries()public JProjectLibraryList getProjectLibraryList()
public void setProjectLibraryList(JProjectLibraryList newList)
newList - LibraryList of internal Library definitions.public boolean addLibrary(java.lang.Object id)
id - the ID of a JLibrary.public boolean addLibrary(java.lang.Object id,
                          boolean export)
id - the ID of a JLibrary.export - whether or not the library is exported.public boolean addLibrary(java.lang.Object id,
                          boolean isExported,
                          boolean isModulePathLibrary)
id - the ID of a JLibrary.isExported - whether or not the library is exported.isModulePathLibrary - whether or not the library is a module path library which
 should be put on the module path instead of the class pathpublic void clearLibraries()
public boolean removeLibrary(java.lang.Object id)
id - the ID of a JLibrary.public JLibrary resolveLibrary(java.lang.Object id)
id - the ID of the JLibrary to locate.public JDK resolveJDK(java.lang.Object id)
id - the ID of the JDK to locate.public boolean getOverrideApplicationLibraries()
public void setOverrideApplicationLibraries(boolean override)