org.repoweb.pom
Class Dependency

java.lang.Object
  extended byorg.repoweb.pom.Dependency
All Implemented Interfaces:
ArtifactInfo

public class Dependency
extends java.lang.Object
implements ArtifactInfo

Describe a project dependency.


Constructor Summary
Dependency()
           
Dependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
 
Method Summary
 void addProperty(java.lang.String id, java.lang.String value)
           
 java.lang.String getArtifactId()
          Retrieve the Artifact Id.
 java.lang.String getFileName()
          Retrieve the file name of the artifact.
 java.lang.String getGroupId()
          Retrieve the Group Id.
 java.lang.String getJar()
           
 java.util.List getProperties()
           
 java.lang.String getType()
          Retrieve the artifact type.
 java.lang.String getUrl()
           
 java.lang.String getVersion()
          Retrieve the version of this artifact.
 boolean isDefaultType()
           
 boolean isOverridden()
          Indicates if the fileName is conform to the standard maven's naming schema.
 void setArtifactId(java.lang.String artifactId)
           
 void setGroupId(java.lang.String groupId)
           
 void setJar(java.lang.String jar)
           
 void setProperties(java.util.List properties)
           
 void setType(java.lang.String type)
           
 void setUrl(java.lang.String url)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency()

Dependency

public Dependency(java.lang.String groupId,
                  java.lang.String artifactId,
                  java.lang.String version)
Method Detail

getArtifactId

public java.lang.String getArtifactId()
Description copied from interface: ArtifactInfo
Retrieve the Artifact Id.

Specified by:
getArtifactId in interface ArtifactInfo
Returns:
id (e.g. 'junit')

setArtifactId

public void setArtifactId(java.lang.String artifactId)

getGroupId

public java.lang.String getGroupId()
Description copied from interface: ArtifactInfo
Retrieve the Group Id.

Specified by:
getGroupId in interface ArtifactInfo
Returns:
id (e.g. 'struts')

setGroupId

public void setGroupId(java.lang.String groupId)

getVersion

public java.lang.String getVersion()
Description copied from interface: ArtifactInfo
Retrieve the version of this artifact. Returns an empty string when no version has been given.

Specified by:
getVersion in interface ArtifactInfo
Returns:
version label (e.g. '3.8.1-SNAPSHOT').

isOverridden

public boolean isOverridden()
Description copied from interface: ArtifactInfo
Indicates if the fileName is conform to the standard maven's naming schema.

[maven]/[groupId]/[type]s/[artifactId]-[version].[type]

Specified by:
isOverridden in interface ArtifactInfo
Returns:
true if this artifact does not follow the default naming schema.

setVersion

public void setVersion(java.lang.String version)

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

getProperties

public java.util.List getProperties()

setProperties

public void setProperties(java.util.List properties)

addProperty

public void addProperty(java.lang.String id,
                        java.lang.String value)

getType

public java.lang.String getType()
Description copied from interface: ArtifactInfo
Retrieve the artifact type. This is determined by the folder containing the artifact.

Specified by:
getType in interface ArtifactInfo
Returns:
the artifact type (e.g. 'jar' for 'jars' folder)

getFileName

public java.lang.String getFileName()
Description copied from interface: ArtifactInfo
Retrieve the file name of the artifact.

Specified by:
getFileName in interface ArtifactInfo
Returns:
file name (e.g. 'junit-3.8.1.jar')

getJar

public java.lang.String getJar()

setJar

public void setJar(java.lang.String jar)

setType

public void setType(java.lang.String type)

isDefaultType

public boolean isDefaultType()


Copyright © 2003-2005 Repoweb. All Rights Reserved.