public final class ApplicationLibraries extends HashStructureAdapter
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | DATA_KEYKey used to store application libraries. | 
| static java.lang.String | DEFINITIONSKey used to store internal library definitions. | 
| static java.lang.String | REFERENCESKey used to store library references. | 
_hash| Constructor and Description | 
|---|
| ApplicationLibraries(HashStructure hash) | 
| ApplicationLibraries(Workspace workspace,
                    HashStructure hash) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addLibraryReference(java.lang.Object id)Add a library to the list of libraries referenced by the application. | 
| static ApplicationLibraries | getInstance(PropertyStorage storage) | 
| static ApplicationLibraries | getInstance(Workspace workspace)Get the application libraries for an application workspace. | 
| ApplicationLibraryList | getLibraryDefinitions()Get the list of libraries defined by the application. | 
| java.util.List<JLibrary> | getLibraryReferences()Get the list of libraries referenced by the application. | 
| boolean | hasLibrary(java.lang.Object id)Determine whether the application libraries contain a specific library. | 
| boolean | removeLibraryReference(java.lang.Object id)Remove a library from the list of libraries referenced by the application. | 
| JLibrary | resolveLibrary(java.lang.Object id)Resolve a library ID to the assocatied library, in the context of the
 application. | 
| void | setLibraryDefinitions(ApplicationLibraryList definitions)Set the list of libraries defined by the application. | 
| void | setLibraryReferences(java.util.List<JLibrary> libraries)Set the library references for the application. | 
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic static final java.lang.String DATA_KEY
public static final java.lang.String REFERENCES
public static final java.lang.String DEFINITIONS
public ApplicationLibraries(HashStructure hash)
public ApplicationLibraries(Workspace workspace, HashStructure hash)
public static ApplicationLibraries getInstance(Workspace workspace)
workspace - the application workspacepublic static ApplicationLibraries getInstance(PropertyStorage storage)
public java.util.List<JLibrary> getLibraryReferences()
public ApplicationLibraryList getLibraryDefinitions()
public void setLibraryDefinitions(ApplicationLibraryList definitions)
definitions - the list of libraries defined internally in the
   applicationpublic boolean addLibraryReference(java.lang.Object id)
id - the ID of the librarytrue if the library reference was added, or false
   if it was already present or the library ID could not be resolvedpublic boolean removeLibraryReference(java.lang.Object id)
id - the ID of the librarytrue if the library reference was removed, or
   false if the reference was not presentpublic JLibrary resolveLibrary(java.lang.Object id)
id - the ID of the librarypublic void setLibraryReferences(java.util.List<JLibrary> libraries)
libraries - the new list of libraries to referencepublic boolean hasLibrary(java.lang.Object id)
id - the ID of the librarytrue if the application libraries contain the library,
   false otherwise