Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.jdeveloper.model
Class ApplicationLibraries

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.model.ApplicationLibraries


public final class ApplicationLibraries
extends HashStructureAdapter

Provides application libraries. Application libraries are available to all projects in the application.


Field Summary
static java.lang.String DATA_KEY
          Key used to store application libraries.
static java.lang.String DEFINITIONS
          Key used to store internal library definitions.
static java.lang.String REFERENCES
          Key used to store library references.

 

Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash

 

Constructor Summary
ApplicationLibraries(HashStructure hash)
           

 

Method Summary
 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.

 

Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DATA_KEY

public static final java.lang.String DATA_KEY
Key used to store application libraries.
See Also:
Constant Field Values

REFERENCES

public static final java.lang.String REFERENCES
Key used to store library references.
See Also:
Constant Field Values

DEFINITIONS

public static final java.lang.String DEFINITIONS
Key used to store internal library definitions.
See Also:
Constant Field Values

Constructor Detail

ApplicationLibraries

public ApplicationLibraries(HashStructure hash)

Method Detail

getInstance

public static ApplicationLibraries getInstance(Workspace workspace)
Get the application libraries for an application workspace.
Parameters:
workspace - the application workspace
Returns:
the application libraries

getInstance

public static ApplicationLibraries getInstance(PropertyStorage storage)

getLibraryReferences

public java.util.List<JLibrary> getLibraryReferences()
Get the list of libraries referenced by the application.
Returns:
the libraries referenced by the application

getLibraryDefinitions

public ApplicationLibraryList getLibraryDefinitions()
Get the list of libraries defined by the application.
Returns:
the list of libraries defined internally in the application

setLibraryDefinitions

public void setLibraryDefinitions(ApplicationLibraryList definitions)
Set the list of libraries defined by the application.
Parameters:
definitions - the list of libraries defined internally in the application

addLibraryReference

public boolean addLibraryReference(java.lang.Object id)
Add a library to the list of libraries referenced by the application.
Parameters:
id - the ID of the library
Returns:
true if the library reference was added, or false if it was already present or the library ID could not be resolved

removeLibraryReference

public boolean removeLibraryReference(java.lang.Object id)
Remove a library from the list of libraries referenced by the application.
Parameters:
id - the ID of the library
Returns:
true if the library reference was removed, or false if the reference was not present

resolveLibrary

public JLibrary resolveLibrary(java.lang.Object id)
Resolve a library ID to the assocatied library, in the context of the application.
Parameters:
id - the ID of the library
Returns:
the library

setLibraryReferences

public void setLibraryReferences(java.util.List<JLibrary> libraries)
Set the library references for the application.
Parameters:
libraries - the new list of libraries to reference

hasLibrary

public boolean hasLibrary(java.lang.Object id)
Determine whether the application libraries contain a specific library.
Parameters:
id - the ID of the library
Returns:
true if the application libraries contain the library, false otherwise

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.