public class LogicalDependency
extends java.lang.Object
Constructor and Description |
---|
LogicalDependency() |
LogicalDependency(java.lang.String lname,
java.lang.String library,
java.lang.String category) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCategory()
Returns the category the dependency belongs to.
|
java.lang.String |
getLibrary()
Returns the library (location) of the dependency
|
java.lang.String |
getLname()
Returns the logical name of the dependency
|
int |
hashCode() |
void |
parseFromJSON(com.google.gson.JsonObject jsonObject)
Sets the logical name, library, and category according to a JSON representation of the object
|
void |
setCategory(java.lang.String category)
Set the category of the dependency
|
void |
setLibrary(java.lang.String library)
Sets the library (location) of the dependency
|
void |
setLname(java.lang.String lname)
Sets the logical name of the dependency
|
com.google.gson.JsonObject |
toJSON()
Returns a JSON representation of the object
|
java.lang.String |
toString() |
public LogicalDependency()
public LogicalDependency(java.lang.String lname, java.lang.String library, java.lang.String category)
public java.lang.String getLname()
public void setLname(java.lang.String lname)
lname
- The logical name of the dependencypublic java.lang.String getLibrary()
public void setLibrary(java.lang.String library)
library
- The library namepublic java.lang.String getCategory()
null
public void setCategory(java.lang.String category)
category
- the category of the dependencypublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public com.google.gson.JsonObject toJSON()
public void parseFromJSON(com.google.gson.JsonObject jsonObject)
jsonObject
- the JSON representation of the objectpublic java.lang.String toString()
toString
in class java.lang.Object
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.