com.ibm.dbb.dependency

Class PhysicalDependency



  • public class PhysicalDependency
    extends LogicalDependency
    The PhysicalDependency class represents a logical dependency that has been processed by the DependencyResolver. It may or may not have been resolved to a physical file on the build file system. If unresolved then the resolved flag is set to false and the three resolution fields (collection, sourceDir, file) are set to null.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.lang.String getArchive()
      Returns the archive path for this dependency
      java.lang.String getCollection()
      Returns the repository collection name the dependency was located in
      java.lang.String getFile()
      Returns the resolved physical file for this dependency
      java.lang.String getSourceDir()
      Returns the root source directory the physical file will be located in
      int hashCode() 
      boolean isExcluded() 
      boolean isResolved()
      Flag indicating if the logical dependency was resolved to a physical file
      void parseFromJSON(com.ibm.json.java.JSONObject jsonObject) 
      void setArchive(java.lang.String archive)
      Sets the archive path for this dependency
      void setCollection(java.lang.String collection)
      Sets the repository collection name the dependency was located in
      void setExcluded(boolean excluded) 
      void setFile(java.lang.String file)
      Sets the resolved physical file for this dependency
      void setResolved(boolean value)
      Set the flag indicating if the logical dependency was resolved to a physical file
      void setSourceDir(java.lang.String sourceDir)
      Sets the root source directory the physical file will be located in
      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

      • PhysicalDependency

        public PhysicalDependency()
      • PhysicalDependency

        public PhysicalDependency(LogicalDependency dependency)
        Public Constructor
        Parameters:
        dependency - Logical dependency this physical dependency is based on
      • PhysicalDependency

        public PhysicalDependency(LogicalDependency dependency,
                                  java.lang.String collection,
                                  java.lang.String sourceDir,
                                  java.lang.String file)
        Public Constructor
        Parameters:
        dependency - Logical dependency this physical dependency is base on
        collection - Repository collection name the dependency was located in
        sourceDir - The root source directory the physical file is located in
        file - The resolved file for this dependency
    • Method Detail

      • getCollection

        public java.lang.String getCollection()
        Returns the repository collection name the dependency was located in
        Returns:
        the repository collection name the dependendcy was located in
      • setCollection

        public void setCollection(java.lang.String collection)
        Sets the repository collection name the dependency was located in
        Parameters:
        collection - the repository collection name the dependency was located in
      • getSourceDir

        public java.lang.String getSourceDir()
        Returns the root source directory the physical file will be located in
        Returns:
        the root source diredctory the physical fiel will be located in
      • setSourceDir

        public void setSourceDir(java.lang.String sourceDir)
        Sets the root source directory the physical file will be located in
        Parameters:
        sourceDir - the root source directory the physical file will be located in
      • getFile

        public java.lang.String getFile()
        Returns the resolved physical file for this dependency
        Returns:
        the resolved physical file for this dependency
      • setFile

        public void setFile(java.lang.String file)
        Sets the resolved physical file for this dependency
        Parameters:
        file - the resolved physical file for this dependency
      • getArchive

        public java.lang.String getArchive()
        Returns the archive path for this dependency
        Returns:
        archive the absolute path to the archive
      • setArchive

        public void setArchive(java.lang.String archive)
        Sets the archive path for this dependency
        Parameters:
        archive - the absolute path to the archive
      • isResolved

        public boolean isResolved()
        Flag indicating if the logical dependency was resolved to a physical file
        Returns:
        the flag indicating if the logical dependency was resolved to a physical file
      • setResolved

        public void setResolved(boolean value)
        Set the flag indicating if the logical dependency was resolved to a physical file
        Parameters:
        value - the flag indicating if the logical dependency was resolved to a physical file
      • isExcluded

        public boolean isExcluded()
      • setExcluded

        public void setExcluded(boolean excluded)
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Returns a JSON representation of the object
        Overrides:
        toJSON in class LogicalDependency
        Returns:
        the JSON representation of the object

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