|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.jbuilder.paths.PathSet
A PathSet represents a collection of Java paths and is typically used to define a library for use by a JBuilder project. In addition to the definition of class, source, and documentation paths, a library may also list a number of additional libraries that it needs path entries from to function correctly.
Each path has a total of three accessor methods, combining the typical getter and setter with a "full" getter that incorporates all of the path entries from other libraries required by this library.
Two specialized subclasses of PathSet, JDKPathSet and ProjectPathSet, provide additional characteristics for defining JDKs and projects, respectively.
Field Summary | |
static PathSet[] |
EMPTY_ARRAY
|
Constructor Summary | |
PathSet(java.lang.String name)
Creates a new library PathSet. |
Method Summary | |
protected void |
addUniquePath(java.util.List list,
Url url)
Adds a path to a list of paths if and only if it is not already a member of the list. |
protected void |
addUniquePaths(java.util.List list,
Url[] urls)
Adds several paths to a list, skipping paths that are already members of the list. |
protected void |
buildFullPaths(java.util.List priorPathSets,
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. |
Url[] |
getClassPath()
Returns the PathSet's current set of class path entries. |
Url[] |
getDocPath()
Returns the PathSet's current set of documentation path entries. |
Url[] |
getFullClassPath()
Retreives the combined class path of this path set and all required path sets. |
Url[] |
getFullDocPath()
Retreives the combined doc path of this path set and all required path sets. |
Url[] |
getFullSourcePath()
Retreives the combined source path of this path set and all required path sets. |
long |
getLastModified()
Reports the time that the last change was made directly to this PathSet. |
java.lang.String |
getName()
Returns the current name for a PathSet. |
PathSet[] |
getRequired()
|
Url[] |
getSourcePath()
Returns the PathSet's current set of source path entries. |
void |
setClassPath(Url[] classPath)
Changes the PathSet's current set of class path entries. |
void |
setDocPath(Url[] docPath)
Changes the PathSet's current set of documentation path entries. |
void |
setName(java.lang.String name)
Changes this PathSet's name. |
void |
setRequired(PathSet[] required)
Loops in the "required" hierarchy are bad news. |
void |
setSourcePath(Url[] sourcePath)
Changes the PathSet's current set of source path entries. |
protected void |
updateLastModified()
Records a new last modified date for this path set and updates the global last updated time so that other path sets can rebuild their "full path" cache. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final PathSet[] EMPTY_ARRAY
Constructor Detail |
public PathSet(java.lang.String name)
name
- The initial name for the PathSet. This value may not be null.Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- A new name for the PathSet. This value may not be null.protected void updateLastModified()
Records a new last modified date for this path set and updates the global last updated time so that other path sets can rebuild their "full path" cache.
Any method that modifies the state of the PathSet should invoke this method as a side-effect.
public long getLastModified()
public Url[] getClassPath()
public Url[] getSourcePath()
public Url[] getDocPath()
public void setClassPath(Url[] classPath)
classPath
- An array of class path entries.public void setSourcePath(Url[] sourcePath)
sourcePath
- An array of source path entries.public void setDocPath(Url[] docPath)
docPath
- An array of documentation path entries.public PathSet[] getRequired()
public void setRequired(PathSet[] required)
protected void buildFullPaths(java.util.List priorPathSets, java.util.List classPathList, java.util.List sourcePathList, java.util.List docPathList)
protected void addUniquePath(java.util.List list, Url url)
protected void addUniquePaths(java.util.List list, Url[] urls)
public Url[] getFullClassPath()
public Url[] getFullSourcePath()
public Url[] getFullDocPath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |