org.apache.archiva.metadata.model
Class Dependency

java.lang.Object
  extended by org.apache.archiva.metadata.model.Dependency
All Implemented Interfaces:
Serializable

public class Dependency
extends Object
implements Serializable

Information about a dependency that this project has on another project or artifact.

See Also:
Serialized Form
To Do:
will be reviewing what is appropriate for the base here - rest should be in a maven dependency facet - avoid details on it externally

Field Summary
private  String artifactId
          The Maven artifact ID of the dependency.
private  String classifier
          The Maven classifier of the dependency.
private  String groupId
          The Maven group ID of the dependency.
private  boolean optional
          Whether the dependency is optional or required.
private  String scope
          The Maven scope of the dependency - compile (default), runtime, etc.
private  String systemPath
          The system path of the file of the dependency artifact to use.
private  String type
          The Maven type of the dependency.
private  String version
          The version of the artifact to depend on.
 
Constructor Summary
Dependency()
           
 
Method Summary
 String getArtifactId()
           
 String getClassifier()
           
 String getGroupId()
           
 String getScope()
           
 String getSystemPath()
           
 String getType()
           
 String getVersion()
           
 boolean isOptional()
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setGroupId(String groupId)
           
 void setOptional(boolean optional)
           
 void setScope(String scope)
           
 void setSystemPath(String systemPath)
           
 void setType(String type)
           
 void setVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classifier

private String classifier
The Maven classifier of the dependency.


optional

private boolean optional
Whether the dependency is optional or required.


scope

private String scope
The Maven scope of the dependency - compile (default), runtime, etc.


systemPath

private String systemPath
The system path of the file of the dependency artifact to use.


type

private String type
The Maven type of the dependency.


artifactId

private String artifactId
The Maven artifact ID of the dependency.


groupId

private String groupId
The Maven group ID of the dependency.


version

private String version
The version of the artifact to depend on. If this refers to a project version then the repository implementation may choose the most appropriate artifact version to use.

Constructor Detail

Dependency

public Dependency()
Method Detail

setClassifier

public void setClassifier(String classifier)

getClassifier

public String getClassifier()

setOptional

public void setOptional(boolean optional)

isOptional

public boolean isOptional()

setScope

public void setScope(String scope)

getScope

public String getScope()

setSystemPath

public void setSystemPath(String systemPath)

getSystemPath

public String getSystemPath()

setType

public void setType(String type)

getType

public String getType()

setArtifactId

public void setArtifactId(String artifactId)

setGroupId

public void setGroupId(String groupId)

setVersion

public void setVersion(String version)

getVersion

public String getVersion()

getArtifactId

public String getArtifactId()

getGroupId

public String getGroupId()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.