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
    Example:
    COPY DFHAID IN MYLIB
    lname=DFHAID, library=MYLIB, category=COPY
    • Constructor Summary

      Constructors 
      Constructor and 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 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.ibm.json.java.JSONObject jsonObject) 
      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.ibm.json.java.JSONObject toJSON()
      Returns a JSON representation of the object
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LogicalDependency

        public LogicalDependency()
      • LogicalDependency

        public LogicalDependency(java.lang.String lname,
                                 java.lang.String library,
                                 java.lang.String category)
    • 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 be null
        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 class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Returns a JSON representation of the object
        Returns:
        the JSON representation of the object
      • parseFromJSON

        public void parseFromJSON(com.ibm.json.java.JSONObject jsonObject)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.