org.apache.maven.shared.runtime
Class MavenProjectProperties

java.lang.Object
  extended by org.apache.maven.shared.runtime.MavenProjectProperties
All Implemented Interfaces:
Serializable

public class MavenProjectProperties
extends Object
implements Serializable

Encapsulates the unique identifier for a Maven project.

More specifically, this object holds a project's group id, artifact id and version. This information is typically generated by Maven and stored within the file META-INF/maven/<groupId>/<artifactId>/pom.properties in the packaged project.

Version:
$Id: MavenProjectProperties.java 831910 2009-11-02 15:05:33Z markh $
Author:
Mark Hobson
See Also:
Serialized Form

Constructor Summary
MavenProjectProperties(String groupId, String artifactId, String version)
          Creates a new MavenProjectProperties with the specified Maven project group id, artifact id and version properties.
 
Method Summary
 boolean equals(Object object)
          
 String getArtifactId()
          Gets the artifact id for these Maven project properties.
 String getGroupId()
          Gets the group id for these Maven project properties.
 String getVersion()
          Gets the version for these Maven project properties.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenProjectProperties

public MavenProjectProperties(String groupId,
                              String artifactId,
                              String version)
Creates a new MavenProjectProperties with the specified Maven project group id, artifact id and version properties.

Parameters:
groupId - the group id, not null
artifactId - the artifact id, not null
version - the version, not null
Method Detail

getGroupId

public String getGroupId()
Gets the group id for these Maven project properties.

Returns:
the group id

getArtifactId

public String getArtifactId()
Gets the artifact id for these Maven project properties.

Returns:
the artifact id

getVersion

public String getVersion()
Gets the version for these Maven project properties.

Returns:
the version

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object object)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.