org.axway.grapes.commons.datamodel
Class License

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

public class License
extends Object

License 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 License()
           
 
Method Summary
 boolean equals(Object obj)
          Checks if the dependency is the same than an other one.
 String getComments()
           
 String getLongName()
           
 String getName()
           
 String getRegexp()
           
 String getUrl()
           
 int hashCode()
           
 boolean isApproved()
           
 boolean isUnknown()
           
 void setApproved(boolean approved)
           
 void setComments(String comments)
           
 void setLongName(String longName)
           
 void setName(String name)
           
 void setRegexp(String regexp)
           
 void setUnknown(boolean unknown)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

License

protected License()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getLongName

public String getLongName()

setLongName

public void setLongName(String longName)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getComments

public String getComments()

setComments

public void setComments(String comments)

getRegexp

public String getRegexp()

setRegexp

public void setRegexp(String regexp)

isApproved

public boolean isApproved()

setApproved

public void setApproved(boolean approved)

isUnknown

public boolean isUnknown()

setUnknown

public void setUnknown(boolean unknown)

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.