org.axway.grapes.commons.datamodel
Class Artifact

java.lang.Object
  extended by org.axway.grapes.commons.datamodel.Artifact

public class Artifact
extends Object

Artifact 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.

Author:
jdcoffre

Constructor Summary
protected Artifact()
           
 
Method Summary
 void addLicense(String licenseName)
           
 boolean equals(Object obj)
          Checks if the artifact is the same than an other one.
 String getArtifactId()
           
 String getClassifier()
           
 String getDownloadUrl()
           
 String getExtension()
           
 String getGavc()
           
 String getGroupId()
           
 List<String> getLicenses()
           
 String getProvider()
           
 String getSize()
           
 String getType()
           
 String getVersion()
           
 int hashCode()
           
 boolean isPromoted()
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setDownloadUrl(String downloadUrl)
           
 void setExtension(String extension)
           
 void setGroupId(String groupId)
           
 void setLicenses(List<String> licenses)
           
 void setPromoted(boolean promoted)
           
 void setProvider(String provider)
           
 void setSize(String size)
           
 void setType(String type)
           
 void setVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Artifact

protected Artifact()
Method Detail

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getType

public String getType()

setType

public void setType(String type)

isPromoted

public boolean isPromoted()

setPromoted

public void setPromoted(boolean promoted)

getClassifier

public String getClassifier()

setClassifier

public void setClassifier(String classifier)

getLicenses

public List<String> getLicenses()

setLicenses

public void setLicenses(List<String> licenses)

addLicense

public void addLicense(String licenseName)

getSize

public String getSize()

setSize

public void setSize(String size)

getDownloadUrl

public String getDownloadUrl()

setDownloadUrl

public void setDownloadUrl(String downloadUrl)

getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

getProvider

public String getProvider()

setProvider

public void setProvider(String provider)

getGavc

public String getGavc()

equals

public boolean equals(Object obj)
Checks if the artifact is the same than an other one.

Overrides:
equals in class Object
Parameters:
obj - Object
Returns:
true only if grId/arId/classifier/version are the same in both.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.