org.axway.grapes.commons.datamodel
Class Dependency

java.lang.Object
  extended by 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


Constructor Summary
protected Dependency()
           
 
Method Summary
 boolean equals(Object obj)
          Checks if the dependency is the same than an other one.
 Scope getScope()
           
 String getSourceName()
           
 String getSourceVersion()
           
 Artifact getTarget()
           
 int hashCode()
           
protected  void setScope(Scope scope)
           
 void setSourceName(String sourceName)
           
 void setSourceVersion(String sourceVersion)
           
protected  void setTarget(Artifact artifact)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

protected Dependency()
Method Detail

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.