org.schmant.project
Class AbstractJavaProject<T extends ProjectRepository>

java.lang.Object
  extended by org.schmant.project.AbstractProject<T>
      extended by org.schmant.project.AbstractJavaProject<T>
All Implemented Interfaces:
JavaProject, Project
Direct Known Subclasses:
EclipseJavaProjectImpl, IntelliJJavaProjectImpl

public abstract class AbstractJavaProject<T extends ProjectRepository>
extends AbstractProject<T>
implements JavaProject


Constructor Summary
AbstractJavaProject(String name, T wos, DirectoryView projDir, ProjectType[] types, Set<DirectoryView> sourceDirs, List<JavaProjectClasspathEntry> buildClasspath)
           
 
Method Summary
 List<JavaProjectClasspathEntry> getBuildClasspath()
          Get the project's build classpath.
 Collection<JavaProject> getProjectBuildDependencies()
          Get the collection of projects that this projects has build dependencies to.
 Set<DirectoryView> getSourceDirectories()
          Get the project's source code directories.
 
Methods inherited from class org.schmant.project.AbstractProject
getDirectory, getName, getRepository, getTypes, isOfType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.schmant.project.Project
getDirectory, getName, getTypes, isOfType
 

Constructor Detail

AbstractJavaProject

public AbstractJavaProject(String name,
                           T wos,
                           DirectoryView projDir,
                           ProjectType[] types,
                           Set<DirectoryView> sourceDirs,
                           List<JavaProjectClasspathEntry> buildClasspath)
                    throws IOException
Throws:
IOException
Method Detail

getSourceDirectories

public Set<DirectoryView> getSourceDirectories()
Description copied from interface: JavaProject
Get the project's source code directories.

Specified by:
getSourceDirectories in interface JavaProject
Returns:
The project's source code directories.

getBuildClasspath

public List<JavaProjectClasspathEntry> getBuildClasspath()
Description copied from interface: JavaProject
Get the project's build classpath. This includes library classpath entries and entries representing other Java projects in the same ProjectRepository.

The order of the returned entries is significant.

Specified by:
getBuildClasspath in interface JavaProject
Returns:
The build classpath entries.

getProjectBuildDependencies

public Collection<JavaProject> getProjectBuildDependencies()
Description copied from interface: JavaProject
Get the collection of projects that this projects has build dependencies to. This is not the complete build classpath, just the project dependencies.

Specified by:
getProjectBuildDependencies in interface JavaProject
Returns:
A collection of Java projects.
See Also:
JavaProject.getBuildClasspath()