public final class JDKAdapter extends LibraryAdapter implements JDK
_hashJDK_EXEC_PROPERTY, JDK_INSTALLED_VMS_PROPERTY, JDK_NAME_PROPERTY, JDK_SDK_BIN_DIR_PROPERTY, JDK_VERSION_NUMBER_PROPERTYLIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY| Constructor and Description | 
|---|
JDKAdapter(HashStructure hash)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equivalent(Library lib)
Determine whether the given Library is equivalent to this one with respect
 to the values of its public properties other than name. 
 | 
java.lang.String[] | 
getInstalledVMs()
Get the installed VM names of this JDK. 
 | 
java.net.URL | 
getJavaExecutable()
Get the URL of the Java executable. 
 | 
java.lang.String | 
getJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists. 
 | 
VersionNumber | 
getJavaVersion()
Get the Java version of this JDK expressed as a VersionNumber. 
 | 
java.net.URL | 
getSDKBinDir()
Get the URL of the bin directory of this JDK. 
 | 
java.lang.String | 
getSDKBinJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists. 
 | 
java.util.Properties | 
getSystemProperties()
Get the Java system proprerties as they would be set when running in this
 JDK. 
 | 
void | 
initFromLibrary(Library lib)
Initialize all public properties, other than name, from the Library
 provided. 
 | 
void | 
setInstalledVMs(java.lang.String[] installedVMs)
Set the installed VM names of this JDK. 
 | 
void | 
setJavaExecutable(java.net.URL url)
Set the URL of the Java executable. 
 | 
void | 
setJavaVersion(VersionNumber ver)
Set the Java version of this JDK. 
 | 
void | 
setSDKBinDir(java.net.URL url)
Set the URL of the bin directory of this JDK. 
 | 
getClassPath, getClassPath, getClassPath, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getDocPath, getDocPath, getDocPath, getIcon, getID, getLongLabel, getName, getShortLabel, getSourcePath, getSourcePath, getSourcePath, getToolTipText, isLocked, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setID, setLocked, setName, setSourcePath, toStringaddStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualsclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsanitizeVersionNumbergetDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, getName, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setNamegetClassPath, getDocPath, getSourcePath, isLocked, setClassPath, setDocPath, setLocked, setSourcePathgetAttributedLabel, getIcon, getLongLabel, getShortLabel, getToolTipText, toStringpublic JDKAdapter(HashStructure hash)
public boolean equivalent(Library lib)
Libraryequivalent in interface Libraryequivalent in class LibraryAdapterlib - the Library against which to test for equivalence.public void initFromLibrary(Library lib)
LibraryinitFromLibrary in interface LibraryinitFromLibrary in class LibraryAdapterlib - the Library from which to fetch property values.public java.net.URL getJavaExecutable()
JDKgetJavaExecutable in interface JDKpublic void setJavaExecutable(java.net.URL url)
JDKsetJavaExecutable in interface JDKurl - A URL which should not be nullpublic java.lang.String[] getInstalledVMs()
JDKgetInstalledVMs in interface JDKpublic void setInstalledVMs(java.lang.String[] installedVMs)
JDKsetInstalledVMs in interface JDKinstalledVMs - The installed VM names which should not be nullpublic VersionNumber getJavaVersion()
JDKgetJavaVersion in interface JDKpublic void setJavaVersion(VersionNumber ver)
JDKsetJavaVersion in interface JDKver - A version which should not be nullpublic java.net.URL getSDKBinDir()
JDKgetSDKBinDir in interface JDKpublic void setSDKBinDir(java.net.URL url)
JDKsetSDKBinDir in interface JDKurl - A URL which should not be nullpublic java.lang.String getSDKBinJavaExecutableNoConsole()
JDKgetSDKBinJavaExecutableNoConsole in interface JDKpublic java.lang.String getJavaExecutableNoConsole()
JDKgetJavaExecutableNoConsole in interface JDKpublic java.util.Properties getSystemProperties()
JDK-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.getSystemProperties in interface JDK