public class JProjectLibraries extends HashStructureAdapter
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | DATA_KEYKey for identifying JProjectLibraries table in HashStructure | 
| static java.lang.String | EXPORTSHashStructure key for exported JLibrary references | 
| static java.lang.String | JDK_NAMEHashStructure key for JDK reference | 
| static java.lang.String | LIB_LISTHashStructure key for internal Library definitions | 
| static java.lang.String | LIBRARIESHashStructure key for JLibrary references | 
| static java.lang.String | OVERRIDE_APP_LIBSHashStructure 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. | 
| 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() | 
| 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 | 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 | 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 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()
public boolean hasLibrary(java.lang.Object id)
id - the ID of a JLibrary.public void setLibraries(JLibrary[] newLibs)
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)
exports - an array of JLibrary to be exported.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 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)