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.Object
The 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 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 dependencyjava.lang.String
getLname()
Returns the logical name of the dependencyint
hashCode()
void
parseFromJSON(com.google.gson.JsonObject jsonObject)
Sets the logical name, library, and category according to a JSON representation of the objectvoid
setCategory(java.lang.String category)
Set the category of the dependencyvoid
setLibrary(java.lang.String library)
Sets the library (location) of the dependencyvoid
setLname(java.lang.String lname)
Sets the logical name of the dependencycom.google.gson.JsonObject
toJSON()
Returns a JSON representation of the objectjava.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in 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:
toString
in classjava.lang.Object
-
-