org.schmant.plugin.intellij.java
Class ImlFileParserImpl

java.lang.Object
  extended by org.schmant.plugin.intellij.java.ImlFileParserImpl
All Implemented Interfaces:
ImlFileParser

public class ImlFileParserImpl
extends Object
implements ImlFileParser

Default implementation of ImlFileParser.

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

Constructor Summary
ImlFileParserImpl()
          Default constructor.
ImlFileParserImpl(Map<String,ImlFileVersionParser> pm)
          Use this constructor to add more ipr file version parsers in addition to the default parsers.
 
Method Summary
 Project parse(IntelliJWorkspace wos, DirectoryView moduleDir, NamedReadableFile imlFile, Map<String,List<JavaProjectClasspathEntry>> projectLibs, IntelliJWorkspaceSettings settings)
          Parse the module file and create a project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImlFileParserImpl

public ImlFileParserImpl()
Default constructor.


ImlFileParserImpl

public ImlFileParserImpl(Map<String,ImlFileVersionParser> pm)
Use this constructor to add more ipr file version parsers in addition to the default parsers.

Method Detail

parse

public Project parse(IntelliJWorkspace wos,
                     DirectoryView moduleDir,
                     NamedReadableFile imlFile,
                     Map<String,List<JavaProjectClasspathEntry>> projectLibs,
                     IntelliJWorkspaceSettings settings)
              throws IOException
Description copied from interface: ImlFileParser
Parse the module file and create a project.

Specified by:
parse in interface ImlFileParser
Parameters:
wos - The IntelliJ workspace being constructed. Don't call any methods on this object.
moduleDir - The project's root directory
imlFile - The .iml file.
projectLibs - The project libraries.
settings - Workspace settings. May be null.
Returns:
The project, or null if the project should be ignored.
Throws:
IOException - On I/O errors