org.mevenide.context
Interface IProjectContext


public interface IProjectContext

extending the IQueryContext with the POM. All the returned objects are intented for short-term use and shall not be modified from outside.

Author:
Milos Kleint

Method Summary
 org.apache.maven.project.Project getFinalProject()
          the merged result of the project.xml POM and all it's precedessors.
 int getProjectDepth()
          counts project.xml files in the pom extension chain.
 java.io.File[] getProjectFiles()
          Separated File locations of all the POM files in the succession row.
 org.apache.maven.project.Project[] getProjectLayers()
          Separated project instances for each of files in the row.
 org.jdom.Element[] getRootElementLayers()
          content of the JDOM trees describing the POM, split into the layers (extends)
 org.jdom.Element getRootProjectElement()
          merged content of the JDOM tree describing the POM.
 

Method Detail

getFinalProject

public org.apache.maven.project.Project getFinalProject()
the merged result of the project.xml POM and all it's precedessors. ("extends" tag)


getProjectLayers

public org.apache.maven.project.Project[] getProjectLayers()
Separated project instances for each of files in the row. The current POM file is first, it's parent is next and the parent of all is last.


getProjectDepth

public int getProjectDepth()
counts project.xml files in the pom extension chain. So for a project.xml without a tag returns 1, and so on.


getProjectFiles

public java.io.File[] getProjectFiles()
Separated File locations of all the POM files in the succession row. The current POM file is first, it's parent is next and the parent of all is last.


getRootProjectElement

public org.jdom.Element getRootProjectElement()
merged content of the JDOM tree describing the POM.


getRootElementLayers

public org.jdom.Element[] getRootElementLayers()
content of the JDOM trees describing the POM, split into the layers (extends)



Copyright © 2003-2005 The Codehaus. All Rights Reserved.