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

E17493-02

oracle.jdeveloper.library
Class AddinJDK

java.lang.Object
  extended by oracle.ide.model.DefaultDisplayable
      extended by oracle.ide.model.DefaultElement
          extended by oracle.jdeveloper.library.LibraryElement
              extended by oracle.jdeveloper.library.AbstractLibrary
                  extended by oracle.jdeveloper.library.AddinJDK
All Implemented Interfaces:
Displayable, Element, Dirtyable, JDK, JPaths, Library

public final class AddinJDK
extends AbstractLibrary
implements JDK

A JDK automatically installed by the extension framework. Thread Safety: instances of this class are immutable, and can be used safely from multiple threads. A copy is taken of the (mutable) URLPath objects passed into the constructor, and these effectively immutable copies are always returned by getClassPath(), getSourcePath(), and getDocPath().

Since:
9.0.2

Field Summary
 
Fields inherited from interface oracle.jdeveloper.library.JDK
JDK_EXEC_PROPERTY, JDK_INSTALLED_VMS_PROPERTY, JDK_NAME_PROPERTY, JDK_SDK_BIN_DIR_PROPERTY, JDK_VERSION_NUMBER_PROPERTY
 
Fields inherited from interface oracle.jdeveloper.library.Library
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
 
Fields inherited from interface oracle.jdeveloper.library.JPaths
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
 
Constructor Summary
AddinJDK(java.lang.String name, URLPath clsPath, URLPath srcPath, URLPath docPath, java.net.URL exeURL, VersionNumber version, java.net.URL sdkBinDir)
           
 
Method Summary
 URLPath getClassPath()
           
 URLPath getDocPath()
           
 javax.swing.Icon getIcon()
          This implementation returns a plain document icon.
 java.lang.String[] getInstalledVMs()
           
 java.net.URL getJavaExecutable()
           
 java.lang.String getJavaExecutableNoConsole()
           
 VersionNumber getJavaVersion()
           
 java.lang.String getLongLabel()
          This implementation delegates to DefaultDisplayable.getShortLabel().
 java.lang.String getName()
           
 java.net.URL getSDKBinDir()
           
 java.lang.String getSDKBinJavaExecutableNoConsole()
           
 java.lang.String getShortLabel()
          This implementation returns a place-holder String.
 URLPath getSourcePath()
           
 java.util.Properties getSystemProperties()
          Get the Java system proprerties as they would be set when running in this JDK.
 void setInstalledVMs(java.lang.String[] installedVMs)
           
 void setJavaExecutable(java.net.URL url)
           
 void setJavaVersion(VersionNumber ver)
           
 void setSDKBinDir(java.net.URL url)
           
 
Methods inherited from class oracle.jdeveloper.library.AbstractLibrary
copyToImpl, equals, equalsImpl, equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, isDirty, isLocked, markDirty, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setLocked, setName, setSourcePath
 
Methods inherited from class oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from class oracle.ide.model.DefaultDisplayable
getToolTipText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.jdeveloper.library.Library
equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setName
 
Methods inherited from interface oracle.jdeveloper.library.JPaths
isLocked, setClassPath, setDocPath, setLocked, setSourcePath
 
Methods inherited from interface oracle.ide.model.Displayable
getToolTipText, toString
 

Constructor Detail

AddinJDK

public AddinJDK(java.lang.String name,
                URLPath clsPath,
                URLPath srcPath,
                URLPath docPath,
                java.net.URL exeURL,
                VersionNumber version,
                java.net.URL sdkBinDir)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Library
Returns:
the Library name, or null

getClassPath

public URLPath getClassPath()
Specified by:
getClassPath in interface JPaths
Returns:
May be null.

getSourcePath

public URLPath getSourcePath()
Specified by:
getSourcePath in interface JPaths
Returns:
May be null.

getDocPath

public URLPath getDocPath()
Specified by:
getDocPath in interface JPaths
Returns:
May be null.

getJavaExecutable

public java.net.URL getJavaExecutable()
Specified by:
getJavaExecutable in interface JDK

setJavaExecutable

public void setJavaExecutable(java.net.URL url)
Specified by:
setJavaExecutable in interface JDK

getInstalledVMs

public java.lang.String[] getInstalledVMs()
Specified by:
getInstalledVMs in interface JDK

setInstalledVMs

public void setInstalledVMs(java.lang.String[] installedVMs)
Specified by:
setInstalledVMs in interface JDK

getJavaVersion

public VersionNumber getJavaVersion()
Specified by:
getJavaVersion in interface JDK

setJavaVersion

public void setJavaVersion(VersionNumber ver)
Specified by:
setJavaVersion in interface JDK

getSDKBinDir

public java.net.URL getSDKBinDir()
Specified by:
getSDKBinDir in interface JDK

setSDKBinDir

public void setSDKBinDir(java.net.URL url)
Specified by:
setSDKBinDir in interface JDK

getSDKBinJavaExecutableNoConsole

public java.lang.String getSDKBinJavaExecutableNoConsole()
Specified by:
getSDKBinJavaExecutableNoConsole in interface JDK

getJavaExecutableNoConsole

public java.lang.String getJavaExecutableNoConsole()
Specified by:
getJavaExecutableNoConsole in interface JDK

getShortLabel

public java.lang.String getShortLabel()
Description copied from class: DefaultDisplayable
This implementation returns a place-holder String.

Specified by:
getShortLabel in interface Displayable
Overrides:
getShortLabel in class AbstractLibrary
Returns:
a short descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getShortLabel()

getLongLabel

public java.lang.String getLongLabel()
Description copied from class: DefaultDisplayable
This implementation delegates to DefaultDisplayable.getShortLabel().

Specified by:
getLongLabel in interface Displayable
Overrides:
getLongLabel in class DefaultDisplayable
Returns:
a long descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getLongLabel()

getIcon

public javax.swing.Icon getIcon()
Description copied from class: DefaultDisplayable
This implementation returns a plain document icon.

Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class AbstractLibrary
Returns:
the Icon to be displayed for the Displayable.
See Also:
Displayable.getIcon()

getSystemProperties

public java.util.Properties getSystemProperties()
Description copied from interface: JDK
Get the Java system proprerties as they would be set when running in this JDK. Note that system properties can be redefined through command line arguments (such as -D) or through API calls (such as System.setProperty(java.lang.String, java.lang.String)). The properties returned by this method may or may not match the actual properties during a future execution of the JVM. Callers should typically only use the standard Java properties relating to the JDK implementation itself, such as java.home or java.version, which will typically have the same values whenever this JDK is run.

Specified by:
getSystemProperties in interface JDK
Returns:
the system properties

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

E17493-02

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