Package org.dependency.domain
Class Dependency
- java.lang.Object
-
- org.dependency.domain.Dependency
-
- All Implemented Interfaces:
Serializable
public class Dependency extends Object implements Serializable
Currently this is the dependency information of an artifact as stored in the database. Not sure if this will be used by the UI or if a different class will be used.- Author:
- Scott Conway
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Dependency()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArtifactName()
long
getDependencyId()
String
getDependencyVersion()
String
getGroupName()
String
getScope()
String
getType()
void
setArtifactName(String artifactName)
Setter for the artifact namevoid
setDependencyId(long dependencyId)
Setter of the dependencyId, required by mybatis.void
setDependencyVersion(String dependencyVersion)
Setter for the dependency version.void
setGroupName(String groupName)
Setter of the maven group name.void
setScope(String scope)
Setter of the maven scope.void
setType(String type)
Setter of the maven type
-
-
-
Method Detail
-
getDependencyId
public long getDependencyId()
- Returns:
- The unique dependency id used by the database
-
setDependencyId
public void setDependencyId(long dependencyId)
Setter of the dependencyId, required by mybatis.- Parameters:
dependencyId
-
-
getGroupName
public String getGroupName()
- Returns:
- the maven groupId of the dependency - for example the groupId of this application is "org.dependency".
-
setGroupName
public void setGroupName(String groupName)
Setter of the maven group name.- Parameters:
groupName
-
-
getArtifactName
public String getArtifactName()
- Returns:
- return the maven artifactId of the dependency - for example the artifactId for this application is "tracker-server".
-
setArtifactName
public void setArtifactName(String artifactName)
Setter for the artifact name- Parameters:
artifactName
-
-
getDependencyVersion
public String getDependencyVersion()
- Returns:
- the version of the dependency
-
setDependencyVersion
public void setDependencyVersion(String dependencyVersion)
Setter for the dependency version.- Parameters:
dependencyVersion
-
-
getType
public String getType()
- Returns:
- the maven type of the dependency - pom, jar, war, etc.
-
setType
public void setType(String type)
Setter of the maven type- Parameters:
type
-
-
getScope
public String getScope()
- Returns:
- the maven scope of the dependency - compile, runtime, test, etc.
-
setScope
public void setScope(String scope)
Setter of the maven scope.- Parameters:
scope
-
-
-