public class PhysicalDependency extends LogicalDependency
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
.Constructor and Description |
---|
PhysicalDependency() |
PhysicalDependency(LogicalDependency dependency)
Public Constructor
|
PhysicalDependency(LogicalDependency dependency,
java.lang.String collection,
java.lang.String sourceDir,
java.lang.String file)
Public Constructor
|
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() |
getCategory, getLibrary, getLname, setCategory, setLibrary, setLname
public PhysicalDependency()
public PhysicalDependency(LogicalDependency dependency)
dependency
- Logical dependency this physical dependency is based onpublic PhysicalDependency(LogicalDependency dependency, java.lang.String collection, java.lang.String sourceDir, java.lang.String file)
dependency
- Logical dependency this physical dependency is base oncollection
- Repository collection name the dependency was located insourceDir
- The root source directory the physical file is located infile
- The resolved file for this dependencypublic java.lang.String getCollection()
public void setCollection(java.lang.String collection)
collection
- the repository collection name the dependency was located inpublic java.lang.String getSourceDir()
public void setSourceDir(java.lang.String sourceDir)
sourceDir
- the root source directory the physical file will be located inpublic java.lang.String getFile()
public void setFile(java.lang.String file)
file
- the resolved physical file for this dependencypublic java.lang.String getArchive()
public void setArchive(java.lang.String archive)
archive
- the absolute path to the archivepublic boolean isResolved()
public void setResolved(boolean value)
value
- the flag indicating if the logical dependency was resolved to a physical filepublic boolean isExcluded()
public void setExcluded(boolean excluded)
public int hashCode()
hashCode
in class LogicalDependency
public boolean equals(java.lang.Object obj)
equals
in class LogicalDependency
public com.ibm.json.java.JSONObject toJSON()
toJSON
in class LogicalDependency
public void parseFromJSON(com.ibm.json.java.JSONObject jsonObject)
parseFromJSON
in class LogicalDependency
public java.lang.String toString()
toString
in class LogicalDependency
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.