Package 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 theImpactResolver
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 Description ImpactFile(LogicalFile logicalFile, Collection collection)
Public ConstructorImpactFile(java.lang.String lname, java.lang.String file, java.lang.String language, Collection collection)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Collection
getCollection()
Returns the repository collection this impacted file was located injava.lang.String
getFile()
Returns the path (usually relative to a root source directory) of the physical file impactedjava.lang.String
getLanguage()
Returns the coding language of the impacted source filejava.lang.String
getLname()
Return the logical name of the impacted fileLogicalFile
getLogicalFile()
int
hashCode()
void
setCollection(Collection collection)
Sets the repository collection this impacted file was located invoid
setFile(java.lang.String file)
Sets the path (usually relative to a root source directory) of the physical file impactedvoid
setLanguage(java.lang.String language)
Sets the coding language of the impacted source filevoid
setLname(java.lang.String lname)
Sets the logical name of the impacted filecom.google.gson.JsonObject
toJSON()
Returns a JSON representation of the objectjava.lang.String
toString()
-
-
-
Constructor Detail
-
ImpactFile
public ImpactFile(java.lang.String lname, java.lang.String file, java.lang.String language, Collection collection)
Public Constructor- Parameters:
lname
- - The logical name of the impacted file. Ex MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVLfile
- - The path (usually relative to a root source directory) of the physical file impactedlanguage
- - The coding language of the impacted filecollection
- - The repository collection the impacted file was located in
-
ImpactFile
public ImpactFile(LogicalFile logicalFile, Collection collection)
Public Constructor- Parameters:
logicalFile
- - The logical file this is based oncollection
- - The repository collection the impacted file was located in
-
-
Method Detail
-
getCollection
public Collection 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(Collection 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.google.gson.JsonObject toJSON() throws BuildException
Returns a JSON representation of the object- Returns:
- the JSON representation of the object
- Throws:
BuildException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getLogicalFile
public LogicalFile getLogicalFile()
- Returns:
- the logicalFile
-
-