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
collection, EMPTY_ARRAY, hasChanged, lastFullUpdate, lastModified, requiredNames
 
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
 void delete()
          removes this JDKPathSet from the collection and tries to delete it from disk
 Url getHomePath()
          Gets the home path for this JDK.
 void setCollection(PathSetCollection collection)
          Sets the collection 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
addEntries, addUniquePath, addUniquePath, addUniquePaths, addUniquePathsIfEnabled, buildFullPaths, getClassPath, getCollection, getDocPath, getFullClassPath, getFullDocPath, getFullSourcePath, getLastModified, getName, getNames, getNames, getRequired, getRequiredNames, getResolver, getSourcePath, getUrl, isEmpty, isEnabled, isReadOnly, load, parseLibraries, resolveRequired, save, setClassPath, setDocPath, setName, setRequired, setRequired, setRequired, setSourcePath, setUrl, updateFullPaths, 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.

setCollection

public void setCollection(PathSetCollection collection)
Sets the collection for this JDK
Overrides:
setCollection in class PathSet
Parameters:
collection - The PathSetCollection that this is part of.

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.

delete

public void delete()
removes this JDKPathSet from the collection and tries to delete it from disk
Overrides:
delete in class PathSet