org.schmant.project.eclipse
Class EclipseWorkspaceConfiguration

java.lang.Object
  extended by org.schmant.project.ProjectRepositoryConfiguration
      extended by org.schmant.project.eclipse.EclipseWorkspaceConfiguration

public class EclipseWorkspaceConfiguration
extends ProjectRepositoryConfiguration

This object contains Eclipse workspace configuration parsed from the workspace metadata.

When creating a workspace object, the EclipseWorkspaceInfoCollector creates an instance of this object.

Before Schmant version 1.1, this class was called ParsedEclipseWorkspaceSettings.

Since:
0.8
Author:
Karl Gustafsson

Constructor Summary
EclipseWorkspaceConfiguration(Map<String,Object> classpathVariables, Map<String,Library> userLibraries, JdkCompliance jdkCompliance)
          Create a new object with parsed settings.
 
Method Summary
 Map<String,Object> getClasspathVariables()
          Get parsed classpath variables and their values.
 JdkCompliance getJdkCompliance()
          Get the default JDK compliance for the workspace, i.e.
 Map<String,Library> getUserLibraries()
          Get the parsed user libraries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseWorkspaceConfiguration

public EclipseWorkspaceConfiguration(Map<String,Object> classpathVariables,
                                     Map<String,Library> userLibraries,
                                     JdkCompliance jdkCompliance)
Create a new object with parsed settings.

Parameters:
classpathVariables - Parsed classpath variables.
userLibraries - Parsed user libraries.
jdkCompliance - The JDK compliance settings for the workspace. This may be null if that information is not present in the workspace configuration.
Method Detail

getClasspathVariables

public Map<String,Object> getClasspathVariables()
Get parsed classpath variables and their values.

Returns:
The classpath variables with values.

getUserLibraries

public Map<String,Library> getUserLibraries()
Get the parsed user libraries.

Returns:
The user libraries.

getJdkCompliance

public JdkCompliance getJdkCompliance()
Get the default JDK compliance for the workspace, i.e. the JDK versions that the compiler and source code are compatible with.

Different Java projects may have their own default JDK versions.

Returns:
The default JDK compliance for projects in the workspace, or null if the workspace configuration does not contain compliance information.
Since:
1.1