org.schmant.plugin.eclipse.java
Class EclipseJavaProjectImpl

java.lang.Object
  extended by org.schmant.project.AbstractProject<T>
      extended by org.schmant.project.AbstractJavaProject<EclipseWorkspace>
          extended by org.schmant.plugin.eclipse.java.EclipseJavaProjectImpl
All Implemented Interfaces:
JavaProject, Project

public class EclipseJavaProjectImpl
extends AbstractJavaProject<EclipseWorkspace>

This object contains information about an Eclipse Java project. In addition to the properties defined by JavaProject, this object has a few Eclipse Java project-specific properties.

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Constructor Summary
EclipseJavaProjectImpl(String name, EclipseWorkspace wos, EntityRepository wosDir, DirectoryView projDir, Set<DirectoryView> sourceDirs, List<JavaProjectClasspathEntry> buildClasspath, JdkCompliance jdkCompliance)
          Create an Eclipse Java project object.
 
Method Summary
 JdkCompliance getJdkCompliance()
          Get the project's JDK compliance.
 String toString()
           
 
Methods inherited from class org.schmant.project.AbstractJavaProject
getBuildClasspath, getProjectBuildDependencies, getSourceDirectories
 
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, wait, wait, wait
 
Methods inherited from interface org.schmant.project.Project
getDirectory, getName, getTypes, isOfType
 

Constructor Detail

EclipseJavaProjectImpl

public EclipseJavaProjectImpl(String name,
                              EclipseWorkspace wos,
                              EntityRepository wosDir,
                              DirectoryView projDir,
                              Set<DirectoryView> sourceDirs,
                              List<JavaProjectClasspathEntry> buildClasspath,
                              JdkCompliance jdkCompliance)
                       throws IOException
Create an Eclipse Java project object.

Parameters:
name - The name of the project.
wos - The workspace object. No methods may be called on this object. (See EclipseWorkspaceInfoCollector.collect(EclipseWorkspace)).
wosDir - The workspace root directory.
projDir - The project's directory.
sourceDirs - Source directories.
buildClasspath - Build classpath.
jdkCompliance - JDK compliance information. This is either parsed from the project configuration or the workspace's default JDK compliance.
Throws:
IOException - On I/O errors.
Method Detail

getJdkCompliance

public JdkCompliance getJdkCompliance()
Get the project's JDK compliance.

Returns:
The project's JDK compliance. If the project does not have custom JDK compliance settings, this returns the workspace's JDK compliance settings. If neither the project, nor the workspace have JDK compliance settings, this method returns null.
Since:
1.1

toString

public String toString()
Overrides:
toString in class Object