org.schmant.plugin.intellij.java
Interface ImlFileVersionParser

All Known Implementing Classes:
ImlFileV4Parser

public interface ImlFileVersionParser

Defines an interface for parsers of different versions of the .iml files.ImlFileParserImpl has a registry of parsers keyed under the file versions they are implemented to parse.

Parser objects are reused and can potentially be used simultaneously by several threads, so they cannot contain any mutable internal state that is not properly guarded.

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

Method Summary
 Project parse(IntelliJWorkspace wos, DirectoryView moduleDir, Map<String,List<JavaProjectClasspathEntry>> projectLibs, IntelliJWorkspaceSettings settings, String moduleName, Document d)
          Parse the DOM Document.
 

Method Detail

parse

Project parse(IntelliJWorkspace wos,
              DirectoryView moduleDir,
              Map<String,List<JavaProjectClasspathEntry>> projectLibs,
              IntelliJWorkspaceSettings settings,
              String moduleName,
              Document d)
              throws IOException
Parse the DOM Document.

Parameters:
wos - The IntelliJ workspace being constructed. Don't call any methods on this object.
moduleDir - The module's root directory
projectLibs - The project's libraries.
settings - Workspace settings. May be null.
moduleName - The name of the module.
d - The .iml file Document
Returns:
The project
Throws:
IOException - On I/O errors