public class LogicalFile
extends java.lang.Object
Constructor and Description |
---|
LogicalFile(java.lang.String lname,
java.lang.String file)
Used to create an instance of
LogicalFile |
LogicalFile(java.lang.String lname,
java.lang.String file,
java.lang.String language,
boolean cics,
boolean sql,
boolean dli)
Used to create an instance of
LogicalFile |
LogicalFile(java.lang.String lname,
java.lang.String file,
java.lang.String language,
boolean cics,
boolean sql,
boolean dli,
boolean mq)
Used to create an instance of
LogicalFile |
Modifier and Type | Method and Description |
---|---|
void |
addLogicalDependency(LogicalDependency logicalDependency)
Adds a logical dependency to the list of dependencies for this file
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFile()
Returns the path (usually relative to a source directory) of the physical file that was scanned
|
java.lang.String |
getLanguage()
Returns the coding language for this source file
|
java.lang.String |
getLname()
Returns the logical name of the file
|
java.util.List<LogicalDependency> |
getLogicalDependencies()
Returns the list of logical dependencies for this file
|
int |
hashCode() |
boolean |
isCICS()
Returns flag indicating program contains EXEC CICS statements
|
boolean |
isDLI()
Returns flag indicating program contains EXEC DLI statements
|
boolean |
isMQ()
Returns flag indicating program contains MQ calls
|
boolean |
isSQL()
Returns flag indicating program contains EXEC SQL statements
|
java.util.List<PhysicalDependency> |
resolveDependencies(java.util.List<com.ibm.dbb.dependency.internal.SearchPath> searchPathList)
Retrieves the list of the Physical Dependencies, resolved according to the searchPathString
|
java.util.List<PhysicalDependency> |
resolveDependencies(java.util.List<com.ibm.dbb.dependency.internal.SearchPath> searchPathList,
java.util.List<java.lang.String> lnames)
Retrieves the list of Physical Dependencies matching the logical names input, resolved according to the searchPathString
|
java.util.List<PhysicalDependency> |
resolveDependencies(java.lang.String searchPathString)
Retrieves the list of the Physical Dependencies, resolved according to the searchPathString
|
java.util.List<PhysicalDependency> |
resolveDependencies(java.lang.String searchPathString,
java.util.List<java.lang.String> lnames)
Retrieves the list of Physical Dependencies matching the logical names input, resolved according to the searchPathString
|
java.util.List<PhysicalDependency> |
resolveDependencies(java.lang.String searchPathString,
java.lang.String lname)
Retrieves the list of Physical Dependencies with the input logical name, resolved according to the searchPathString
|
void |
setCICS(boolean value)
Sets flag indicating program contains EXEC CICS statements
|
void |
setDLI(boolean value)
Sets flag indicating program contains EXEC DLI statements
|
void |
setFile(java.lang.String file)
Sets the path (usually relative to a source directory) of the physical file that was scanned
|
void |
setLanguage(java.lang.String language)
Set the coding language for this source file
|
void |
setLname(java.lang.String lname)
Sets the logical name of the file
|
void |
setLogicalDependencies(java.util.List<LogicalDependency> logicalDependencies)
Sets the list of logical dependencies for this file
|
void |
setMQ(boolean value)
Sets flag indicating program contains MQ calls
|
void |
setSQL(boolean value)
Sets flag indicating program contains EXEC SQL statements
|
com.google.gson.JsonObject |
toJSON()
Returns a JSON representation of this object
|
java.lang.String |
toString() |
public LogicalFile(java.lang.String lname, java.lang.String file)
LogicalFile
lname
- The logical name of the file. Ex MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVLfile
- The file path of the physical file that was scanned (usually a relative path)public LogicalFile(java.lang.String lname, java.lang.String file, java.lang.String language, boolean cics, boolean sql, boolean dli)
LogicalFile
lname
- The logical name of the file. Ex MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVLfile
- The file path of the physical file that was scanned (usually a relative path)language
- The coding language of the source filedli
- dependencysql
- sqlcics
- cicspublic LogicalFile(java.lang.String lname, java.lang.String file, java.lang.String language, boolean cics, boolean sql, boolean dli, boolean mq)
LogicalFile
lname
- The logical name of the file. Ex MortgageApplication/cobol/epsnbrvl.cbl -> EPSNBRVLfile
- The file path of the physical file that was scanned (usually a relative path)language
- The coding language of the source filedli
- dependencysql
- sqlcics
- cicsmq
- mqpublic java.util.List<PhysicalDependency> resolveDependencies(java.lang.String searchPathString) throws BuildException, java.io.IOException
searchPathString
- the search path string to match againstBuildException
- on invalid searchPathString or error walking the search file treejava.io.IOException
- on error walking the search file treepublic java.util.List<PhysicalDependency> resolveDependencies(java.util.List<com.ibm.dbb.dependency.internal.SearchPath> searchPathList) throws DependencyException, BuildException, java.io.IOException
searchPathList
- - the list of SearchPath objects to match againstBuildException
- on invalid searchPathString or error walking the search file treejava.io.IOException
- on error walking the search file treeDependencyException
public java.util.List<PhysicalDependency> resolveDependencies(java.lang.String searchPathString, java.lang.String lname) throws BuildException, java.io.IOException
searchPathString
- the search path string to match againstlname
- the logical name to match againstBuildException
- on invalid searchPathString or error walking the search file treejava.io.IOException
- on error walking the search file treepublic java.util.List<PhysicalDependency> resolveDependencies(java.lang.String searchPathString, java.util.List<java.lang.String> lnames) throws BuildException, java.io.IOException
searchPathString
- the search path string to match againstlnames
- a list of logical names to match against or null if ommittedBuildException
- on invalid searchPathString or error walking the search file treejava.io.IOException
- on error walking the search file treepublic java.util.List<PhysicalDependency> resolveDependencies(java.util.List<com.ibm.dbb.dependency.internal.SearchPath> searchPathList, java.util.List<java.lang.String> lnames) throws BuildException, java.io.IOException
searchPathList
- the list of SearchPath objects to match againstlnames
- a list of logical names to match against or null if ommittedBuildException
- on invalid searchPathString or error walking the search file treejava.io.IOException
- on error walking the search file treepublic java.lang.String getLname()
public void setLname(java.lang.String lname)
lname
- the logical name of the filepublic java.lang.String getFile()
public void setFile(java.lang.String file)
file
- the path of the physical file that was scannedpublic java.util.List<LogicalDependency> getLogicalDependencies()
public void setLogicalDependencies(java.util.List<LogicalDependency> logicalDependencies)
logicalDependencies
- the list of the logical dependencies for this filepublic void addLogicalDependency(LogicalDependency logicalDependency)
logicalDependency
- the logical dependency to be addedpublic java.lang.String getLanguage()
public boolean isCICS()
public void setCICS(boolean value)
value
- boolean indicating program contains EXEC CICS statementspublic boolean isSQL()
public void setSQL(boolean value)
value
- boolean indicating program contains EXEC SQL statementspublic boolean isDLI()
public void setDLI(boolean value)
value
- boolean indicating program contains EXEC DLI statementspublic void setLanguage(java.lang.String language)
language
- the coding language for this source filepublic boolean isMQ()
public void setMQ(boolean value)
value
- boolean indicating program contains MQ callspublic com.google.gson.JsonObject toJSON()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.