Package com.ibm.dbb.dependency
Class ImpactFile
- java.lang.Object
-
- com.ibm.dbb.dependency.ImpactFile
-
public class ImpactFile extends java.lang.ObjectThe ImpactFile class represents an output of theImpactResolverwhich 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 booleanequals(java.lang.Object obj)CollectiongetCollection()Returns the repository collection this impacted file was located injava.lang.StringgetFile()Returns the path (usually relative to a root source directory) of the physical file impactedjava.lang.StringgetLanguage()Returns the coding language of the impacted source filejava.lang.StringgetLname()Return the logical name of the impacted fileLogicalFilegetLogicalFile()inthashCode()voidsetCollection(Collection collection)Sets the repository collection this impacted file was located invoidsetFile(java.lang.String file)Sets the path (usually relative to a root source directory) of the physical file impactedvoidsetLanguage(java.lang.String language)Sets the coding language of the impacted source filevoidsetLname(java.lang.String lname)Sets the logical name of the impacted filecom.google.gson.JsonObjecttoJSON()Returns a JSON representation of the objectjava.lang.StringtoString()
-
-
-
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 BuildExceptionReturns a JSON representation of the object- Returns:
- the JSON representation of the object
- Throws:
BuildException
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getLogicalFile
public LogicalFile getLogicalFile()
- Returns:
- the logicalFile
-
-