org.apache.maven.plugin.doap.options
Class DoapArtifact

java.lang.Object
  extended by org.apache.maven.plugin.doap.options.DoapArtifact
All Implemented Interfaces:
Serializable

public class DoapArtifact
extends Object
implements Serializable

An Maven artifact object used by DOAP.

Version:
$Revision: 815337 $ $Date: 2012-05-01 21:52:10 +0000 (Tue, 01 May 2012) $
See Also:
Serialized Form

Constructor Summary
DoapArtifact()
           
 
Method Summary
 boolean equals(Object other)
          Method equals.
 String getArtifactId()
          Get the artifact id of the Maven artifact.
 String getDoapFileName()
          Get the path of the DOAP file that will be generated, no notion of path.
 String getGroupId()
          Get the id of the group of the Maven artifact.
 String getVersion()
          Get the version of the Maven artifact.
 int hashCode()
          Method hashCode.
 void setArtifactId(String artifactId)
          Set the artifact id of the Maven artifact.
 void setDoapFileName(String doapFileName)
          Set the name of the DOAP file that will be generated, no notion of path.
 void setGroupId(String groupId)
          Set the id of the group of the Maven artifact.
 void setVersion(String version)
          Set the version of the Maven artifact.
 String toConfiguration()
           
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoapArtifact

public DoapArtifact()
Method Detail

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getArtifactId

public String getArtifactId()
Get the artifact id of the Maven artifact.

Returns:
String

getGroupId

public String getGroupId()
Get the id of the group of the Maven artifact.

Returns:
String

getVersion

public String getVersion()
Get the version of the Maven artifact.

Returns:
String

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

setArtifactId

public void setArtifactId(String artifactId)
Set the artifact id of the Maven artifact.

Parameters:
artifactId -

setDoapFileName

public void setDoapFileName(String doapFileName)
Set the name of the DOAP file that will be generated, no notion of path.

Parameters:
doapFileName -

setGroupId

public void setGroupId(String groupId)
Set the id of the group of the Maven artifact.

Parameters:
groupId -

setVersion

public void setVersion(String version)
Set the version of the Maven artifact.

Parameters:
version -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String

getDoapFileName

public String getDoapFileName()
Get the path of the DOAP file that will be generated, no notion of path.
If not specified, return "doap_" + this.artifactId + ".rdf"

Returns:
String

toConfiguration

public String toConfiguration()
Returns:
String the configuration of this class.


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