com.ibm.dbb.dependency

Class ImpactFile

  • java.lang.Object
    • com.ibm.dbb.dependency.ImpactFile


  • public class ImpactFile
    extends java.lang.Object
    The ImpactFile class represents an output of the ImpactResolver which searches repository collections for files (programs) that have a dependency (are impacted by changes) to the search file. It is comprised of the following fields:
    • lname - The logical name of the impacted file. Ex file MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVL
    • file - The path (usually relative to a root source directory) of the physical file impacted
    • language - The coding language of the impacted file
    • collection - The repository collection the impacted file was located in
    • Constructor Summary

      Constructors 
      Constructor and Description
      ImpactFile(LogicalFile logicalFile, java.lang.String collection)
      Public Constructor
      ImpactFile(java.lang.String lname, java.lang.String file, java.lang.String language, java.lang.String collection)
      Public Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.lang.String getCollection()
      Returns the repository collection this impacted file was located in
      java.lang.String getFile()
      Returns the path (usually relative to a root source directory) of the physical file impacted
      java.lang.String getLanguage()
      Returns the coding language of the impacted source file
      java.lang.String getLname()
      Return the logical name of the impacted file
      LogicalFile getLogicalFile() 
      int hashCode() 
      void setCollection(java.lang.String collection)
      Sets the repository collection this impacted file was located in
      void setFile(java.lang.String file)
      Sets the path (usually relative to a root source directory) of the physical file impacted
      void setLanguage(java.lang.String language)
      Sets the coding language of the impacted source file
      void setLname(java.lang.String lname)
      Sets the logical name of the impacted file
      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

      • ImpactFile

        public ImpactFile(java.lang.String lname,
                          java.lang.String file,
                          java.lang.String language,
                          java.lang.String collection)
        Public Constructor
        Parameters:
        lname - - The logical name of the impacted file. Ex MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVL
        file - - The path (usually relative to a root source directory) of the physical file impacted
        language - - The coding language of the impacted file
        collection - - The repository collection the impacted file was located in
      • ImpactFile

        public ImpactFile(LogicalFile logicalFile,
                          java.lang.String collection)
        Public Constructor
        Parameters:
        logicalFile - - The logical file this is based on
        collection - - The repository collection the impacted file was located in
    • Method Detail

      • getCollection

        public java.lang.String getCollection()
        Returns the repository collection this impacted file was located in
        Returns:
        the repository collection this impacted file was located in
      • setCollection

        public void setCollection(java.lang.String collection)
        Sets the repository collection this impacted file was located in
        Parameters:
        collection - the repository collection this impacted file was located in
      • getFile

        public java.lang.String getFile()
        Returns the path (usually relative to a root source directory) of the physical file impacted
        Returns:
        the path of the physical file impacted
      • setFile

        public void setFile(java.lang.String file)
        Sets the path (usually relative to a root source directory) of the physical file impacted
        Parameters:
        file - the path of the physical file impacted
      • toJSON

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

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

        public java.lang.String getLname()
        Return the logical name of the impacted file
        Returns:
        the logical name of the impacted file
      • setLname

        public void setLname(java.lang.String lname)
        Sets the logical name of the impacted file
        Parameters:
        lname - the logical name of the impacted file
      • getLanguage

        public java.lang.String getLanguage()
        Returns the coding language of the impacted source file
        Returns:
        the coding language of the impacted source file
      • setLanguage

        public void setLanguage(java.lang.String language)
        Sets the coding language of the impacted source file
        Parameters:
        language - the coding langauge of the impacted source file
      • 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
      • getLogicalFile

        public LogicalFile getLogicalFile()
        Returns:
        the logicalFile

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