org.codehaus.mojo.license.model
Class ProjectLicenseInfo

java.lang.Object
  extended by org.codehaus.mojo.license.model.ProjectLicenseInfo

public class ProjectLicenseInfo
extends Object

Contains the license information for a single project/dependency

Since:
1.0
Author:
pgier

Constructor Summary
ProjectLicenseInfo()
          Default constructor
ProjectLicenseInfo(String groupId, String artifactId, String version)
           
 
Method Summary
 void addLicense(org.apache.maven.model.License license)
           
 boolean equals(Object compareTo)
          Compare this artifact to another ProjectLicenseInfo, or compare to an instance of org.apache.maven.artifact.Artifact
 String getArtifactId()
           
 String getGroupId()
           
 String getId()
          The unique ID for the project
 String getLicenseResolutionResult()
           
 List<org.apache.maven.model.License> getLicenses()
           
 String getVersion()
           
 int hashCode()
           
 void setArtifactId(String artifactId)
           
 void setGroupId(String groupId)
           
 void setLicenseResolutionResult(String licenseResolutionResult)
           
 void setLicenses(List<org.apache.maven.model.License> licenses)
           
 void setVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectLicenseInfo

public ProjectLicenseInfo()
Default constructor


ProjectLicenseInfo

public ProjectLicenseInfo(String groupId,
                          String artifactId,
                          String version)
Method Detail

getLicenseResolutionResult

public String getLicenseResolutionResult()

setLicenseResolutionResult

public void setLicenseResolutionResult(String licenseResolutionResult)

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getLicenses

public List<org.apache.maven.model.License> getLicenses()

setLicenses

public void setLicenses(List<org.apache.maven.model.License> licenses)

addLicense

public void addLicense(org.apache.maven.model.License license)

toString

public String toString()
Overrides:
toString in class Object

getId

public String getId()
The unique ID for the project

Returns:
String containing "groupId:artifactId"

equals

public boolean equals(Object compareTo)
Compare this artifact to another ProjectLicenseInfo, or compare to an instance of org.apache.maven.artifact.Artifact

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010-2012 The Kuali Foundation. All Rights Reserved.