com.borland.jbuilder.paths
Class ProjectPathSet

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

public class ProjectPathSet
extends PathSet

A ProjectPathSet is a specialized kind of library designed to represent the set of paths defined for a project. In addition to the standard paths a project has a JDKPathSet and an out path.

Although it inherits the notion of a set of a class path from PathSet, by convention a project does not have any explicit classpath entries. The outpath and paths required by the project's JDK and libraries define the full classpath.


Fields inherited from class com.borland.jbuilder.paths.PathSet
EMPTY_ARRAY
 
Constructor Summary
ProjectPathSet()
           
 
Method Summary
protected  void buildFullPaths(java.util.List priorPathSet, java.util.List classPathList, java.util.List sourcePathList, java.util.List docPathList)
          Adds missing elements from the local path set to the full path list, then invokes buildFullPaths(List, List, List) on each required path set in turn.
 JDKPathSet getJDKPathSet()
          Fetches the JDK associated with the project.
 Url getOutPath()
          Fetches the path used to store compiled Java class files when the project is built.
 boolean putClassOnFullPath(java.lang.String className)
          Attempts to ensure that the specified class is available on the project's class path.
 void setJDKPathSet(JDKPathSet jdkPathSet)
          Changes the JDK associated with the project.
 void setOutPath(Url outPath)
          Changes the path used to store compiled Java class files when the project is built.
 
Methods inherited from class com.borland.jbuilder.paths.PathSet
addUniquePath, addUniquePaths, 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

ProjectPathSet

public ProjectPathSet()
Method Detail

getJDKPathSet

public JDKPathSet getJDKPathSet()

Fetches the JDK associated with the project.

Returns:
A JDKPathSet instance representing the project's JDK. While this value will typically be non-null, newly created projects may briefly have a null JDK.

setJDKPathSet

public void setJDKPathSet(JDKPathSet jdkPathSet)

Changes the JDK associated with the project.

Parameters:
jdkPathSet - The JDK to be used by this project. This value may not be null.

getOutPath

public Url getOutPath()

Fetches the path used to store compiled Java class files when the project is built.


setOutPath

public void setOutPath(Url outPath)

Changes the path used to store compiled Java class files when the project is built.


putClassOnFullPath

public boolean putClassOnFullPath(java.lang.String className)
Attempts to ensure that the specified class is available on the project's class path. If the class cannot be found, the existing libraries are searched in order, and the first library that contains the class is added to the project's required library list.
Parameters:
className - The fully qualified name of the desired class.
Returns:
True if the class is now on the project's class path, false if it could not be found in any library.

buildFullPaths

protected void buildFullPaths(java.util.List priorPathSet,
                              java.util.List classPathList,
                              java.util.List sourcePathList,
                              java.util.List docPathList)
Description copied from class: PathSet
Adds missing elements from the local path set to the full path list, then invokes buildFullPaths(List, List, List) on each required path set in turn.
Overrides:
buildFullPaths in class PathSet