org.apache.maven
Class DescribedDependency

java.lang.Object
  extended byorg.apache.maven.DescribedDependency
All Implemented Interfaces:
Comparable

public class DescribedDependency
extends Object
implements Comparable

Dependency wrapper. Adds an url to download and a description.

Version:
$Id: DescribedDependency.java 532339 2007-04-25 12:28:56Z ltheussl $
Author:
Michal Maczka

Constructor Summary
DescribedDependency(org.apache.maven.project.Dependency dependencyToWrap)
          Creates a new DescribedDependency object.
 
Method Summary
 int compareTo(Object obj)
           
 String getArtifact()
          Dependency's artifact property getter.
 String getArtifactDirectory()
          Dependency's artifactDirectory property getter.
 String getArtifactId()
          Dependency's artifactId property getter.
 String getComment()
          Delegate method from Dependency.getProperty("comment")
 String getDescription()
          Property getter.
 String getExtension()
          Dependency's extension property getter.
 String getGroupId()
          Dependency's groupId property getter.
 String getId()
          Dependency's id property getter.
 String getJar()
          Dependency's jar property getter.
 String getScope()
          Delegate method from Dependency.getProperty("scope")
 String getType()
          Dependency's type property getter.
 String getUrl()
          Property getter.
 String getVersion()
          Dependency's version property getter.
 void setDescription(String newDescription)
          Property setter.
 void setUrl(String newUrl)
          Property setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribedDependency

public DescribedDependency(org.apache.maven.project.Dependency dependencyToWrap)
Creates a new DescribedDependency object.

Parameters:
dependencyToWrap - Original dependency.
Method Detail

getArtifact

public String getArtifact()
Dependency's artifact property getter.

Returns:
dependency's artifact.
See Also:
Dependency.getArtifact()

getArtifactDirectory

public String getArtifactDirectory()
Dependency's artifactDirectory property getter.

Returns:
dependency's artifactDirectory.
See Also:
Dependency.getArtifactDirectory()

getArtifactId

public String getArtifactId()
Dependency's artifactId property getter.

Returns:
dependency's artifactId.
See Also:
Dependency.getArtifactId()

setDescription

public void setDescription(String newDescription)
Property setter.

Parameters:
newDescription - new description for the dependency.

getDescription

public String getDescription()
Property getter.

Returns:
the dependency's description.

getExtension

public String getExtension()
Dependency's extension property getter.

Returns:
dependency's extension.
See Also:
Dependency.getExtension()

getGroupId

public String getGroupId()
Dependency's groupId property getter.

Returns:
dependency's groupId.
See Also:
Dependency.getGroupId()

getId

public String getId()
Dependency's id property getter.

Returns:
dependency's id.
See Also:
Dependency.getId()

getJar

public String getJar()
Dependency's jar property getter.

Returns:
dependency's jar.
See Also:
Dependency.getJar()

getType

public String getType()
Dependency's type property getter.

Returns:
dependency's type.
See Also:
Dependency.getType()

setUrl

public void setUrl(String newUrl)
Property setter.

Parameters:
newUrl - the new dependency's url.

getUrl

public String getUrl()
Property getter.

Returns:
the dependency's url.

getVersion

public String getVersion()
Dependency's version property getter.

Returns:
dependency's version.
See Also:
Dependency.getVersion()

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

getComment

public String getComment()
Delegate method from Dependency.getProperty("comment")


getScope

public String getScope()
Delegate method from Dependency.getProperty("scope")



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.