Package com.ibm.dbb.dependency
Class LogicalDependency
- java.lang.Object
-
- com.ibm.dbb.dependency.LogicalDependency
-
- Direct Known Subclasses:
PhysicalDependency
public class LogicalDependency extends java.lang.ObjectThe LogicalDependency class represents a dependency (usually a copybook or include file) gathered by a dependency scanner and stored in a repository collection. It is comprised of three fields:- lname - The logical name of the dependency
- library - The z/OS library where the dependency exists
- category - An optional field to indicate the dependency type
COPY DFHAID IN MYLIB
lname=DFHAID, library=MYLIB, category=COPY
-
-
Constructor Summary
Constructors Constructor Description LogicalDependency()LogicalDependency(java.lang.String lname, java.lang.String library, java.lang.String category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCategory()Returns the category the dependency belongs to.java.lang.StringgetLibrary()Returns the library (location) of the dependencyjava.lang.StringgetLname()Returns the logical name of the dependencyinthashCode()voidparseFromJSON(com.google.gson.JsonObject jsonObject)Sets the logical name, library, and category according to a JSON representation of the objectvoidsetCategory(java.lang.String category)Set the category of the dependencyvoidsetLibrary(java.lang.String library)Sets the library (location) of the dependencyvoidsetLname(java.lang.String lname)Sets the logical name of the dependencycom.google.gson.JsonObjecttoJSON()Returns a JSON representation of the objectjava.lang.StringtoString()
-
-
-
Method Detail
-
getLname
public java.lang.String getLname()
Returns the logical name of the dependency- Returns:
- the logical name of the dependency
-
setLname
public void setLname(java.lang.String lname)
Sets the logical name of the dependency- Parameters:
lname- The logical name of the dependency
-
getLibrary
public java.lang.String getLibrary()
Returns the library (location) of the dependency- Returns:
- the library (location) of the dependency
-
setLibrary
public void setLibrary(java.lang.String library)
Sets the library (location) of the dependency- Parameters:
library- The library name
-
getCategory
public java.lang.String getCategory()
Returns the category the dependency belongs to. Can benull- Returns:
- the category the dependency belongs to
-
setCategory
public void setCategory(java.lang.String category)
Set the category of the dependency- Parameters:
category- the category of the dependency
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns a JSON representation of the object- Returns:
- the JSON representation of the object
-
parseFromJSON
public void parseFromJSON(com.google.gson.JsonObject jsonObject)
Sets the logical name, library, and category according to a JSON representation of the object- Parameters:
jsonObject- the JSON representation of the object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-