org.apache.maven.dotnet.embedder.impl
Class MavenProjectImpl

java.lang.Object
  extended by org.apache.maven.dotnet.embedder.impl.MavenProjectImpl
All Implemented Interfaces:
java.lang.Comparable, MavenProject

public class MavenProjectImpl
extends java.lang.Object
implements MavenProject

Provides an implementation of the MavenProject.

Author:
Shane Isbell

Field Summary
 
Fields inherited from interface org.apache.maven.dotnet.embedder.MavenProject
ROLE
 
Constructor Summary
MavenProjectImpl()
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getArtifactId()
          Returns the artifact id of the maven project.
 java.lang.String getGroupId()
          Returns the group id of the maven project.
 java.util.Set<MavenProject> getMavenProjects()
          Returns a set of maven project children (typically the modules of a parent pom).
 org.apache.maven.model.Model getModel()
           
 java.lang.String getPomPath()
          Returns the path to the maven project's pom.
 java.lang.String getVersion()
          Returns the version of the maven project.
 int hashCode()
           
 boolean isOrphaned()
          Returns true if both of the following conditions apply: 1) the project is not in the root directory AND 2) the project is not attached (as a module) to a pom that exists in the root directory, otherwise returns false.
 void setArtifactId(java.lang.String artifactId)
           
 void setGroupId(java.lang.String groupId)
           
 void setIsOrphaned(boolean isOrphaned)
           
 void setMavenProjects(java.util.Set<MavenProject> mavenProjects)
           
 void setModel(org.apache.maven.model.Model model)
           
 void setPomPath(java.lang.String pomPath)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenProjectImpl

public MavenProjectImpl()
Constructor. This method is intended to by invoked by xfire, not by the application developer.

Method Detail

getMavenProjects

public java.util.Set<MavenProject> getMavenProjects()
Description copied from interface: MavenProject
Returns a set of maven project children (typically the modules of a parent pom).

Specified by:
getMavenProjects in interface MavenProject
Returns:
a set of maven project children

getModel

public org.apache.maven.model.Model getModel()

setModel

public void setModel(org.apache.maven.model.Model model)

setMavenProjects

public void setMavenProjects(java.util.Set<MavenProject> mavenProjects)

getPomPath

public java.lang.String getPomPath()
Description copied from interface: MavenProject
Returns the path to the maven project's pom.

Specified by:
getPomPath in interface MavenProject
Returns:
the path to the maven project's pom

setPomPath

public void setPomPath(java.lang.String pomPath)

getGroupId

public java.lang.String getGroupId()
Description copied from interface: MavenProject
Returns the group id of the maven project.

Specified by:
getGroupId in interface MavenProject
Returns:
the group id of the maven project.

setGroupId

public void setGroupId(java.lang.String groupId)

getArtifactId

public java.lang.String getArtifactId()
Description copied from interface: MavenProject
Returns the artifact id of the maven project.

Specified by:
getArtifactId in interface MavenProject
Returns:
the artifact id of the maven project

setArtifactId

public void setArtifactId(java.lang.String artifactId)

getVersion

public java.lang.String getVersion()
Description copied from interface: MavenProject
Returns the version of the maven project.

Specified by:
getVersion in interface MavenProject
Returns:
the version of the maven project

setVersion

public void setVersion(java.lang.String version)

isOrphaned

public boolean isOrphaned()
Description copied from interface: MavenProject
Returns true if both of the following conditions apply: 1) the project is not in the root directory AND 2) the project is not attached (as a module) to a pom that exists in the root directory, otherwise returns false.

Specified by:
isOrphaned in interface MavenProject
Returns:
true if both of the following conditions apply: 1) the project is not in the root directory AND 2) the project is not attached (as a module) to a pom that exists in the root directory, otherwise returns false.

setIsOrphaned

public void setIsOrphaned(boolean isOrphaned)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException


Copyright © 2007 NMaven. All Rights Reserved.