com.borland.jbuilder.paths
Class JDKPathSet

java.lang.Object
  |
  +--com.borland.jbuilder.paths.PathSet
        |
        +--com.borland.jbuilder.paths.JDKPathSet

public class JDKPathSet
extends PathSet

A JDKPathSet is a specialized kind of library designed to represent a release of the Java Development Kit. Each Java project is associated with exactly one JDKPathSet.

Although it inherits the notion of a set of required libraries from PathSet, by convention a JDK does not require any additional libraries.


Fields inherited from class com.borland.jbuilder.paths.PathSet
EMPTY_ARRAY
 
Constructor Summary
JDKPathSet(java.lang.String name)
          Creates a new JDKPathSet with empty paths.
JDKPathSet(Url homePath)
          Creates a new JDKPathSet by inspecting a home path and making educated guesses about all the necessary paths.
 
Method Summary
 Url getHomePath()
          Gets the home path for this JDK.
 void setHomePath(Url homePath)
          Sets the home path, the root directory used for JDK installation.
 
Methods inherited from class com.borland.jbuilder.paths.PathSet
addUniquePath, addUniquePaths, buildFullPaths, getClassPath, getDocPath, getFullClassPath, getFullDocPath, getFullSourcePath, getLastModified, getName, getRequired, getSourcePath, setClassPath, setDocPath, setName, setRequired, setSourcePath, updateLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKPathSet

public JDKPathSet(java.lang.String name)

Creates a new JDKPathSet with empty paths.

Parameters:
name - An initial name for the new instance.

JDKPathSet

public JDKPathSet(Url homePath)
           throws InvalidUrlException

Creates a new JDKPathSet by inspecting a home path and making educated guesses about all the necessary paths.

Parameters:
homePath - The root directory of the JDK installation.
Throws:
InvalidUrlException - If the home path does not represent a valid JDK.
Method Detail

getHomePath

public Url getHomePath()

Gets the home path for this JDK.

Returns:
A Url refering to the JDK home path.

setHomePath

public void setHomePath(Url homePath)

Sets the home path, the root directory used for JDK installation. All of the resources for a JDK are located relative to the home path.

Parameters:
homePath - A Url refering to the JDK home path.