org.axway.grapes.commons.datamodel
Class Dependency
java.lang.Object
org.axway.grapes.commons.datamodel.Dependency
public class Dependency
- extends Object
Dependency Model Class
Model Objects are used in the communication with the Grapes server. These objects are serialized/un-serialized in JSON objects to be exchanged via http REST calls.
This class is used to represent the dependency between two modules
Dependency
protected Dependency()
getTarget
public Artifact getTarget()
setTarget
protected void setTarget(Artifact artifact)
getScope
public Scope getScope()
setScope
protected void setScope(Scope scope)
getSourceVersion
public String getSourceVersion()
setSourceVersion
public void setSourceVersion(String sourceVersion)
getSourceName
public String getSourceName()
setSourceName
public void setSourceName(String sourceName)
equals
public boolean equals(Object obj)
- Checks if the dependency is the same than an other one.
- Overrides:
equals in class Object
- Parameters:
obj - Object
- Returns:
- true only if artifact/scope are the same in both.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014. All Rights Reserved.