mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
added displayFileName field to the dependency class
Former-commit-id: 0b4af6346a1bfd1034a3b65e766c11a42dfcdf65
This commit is contained in:
@@ -177,6 +177,33 @@ public class Dependency implements Comparable<Dependency> {
|
|||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The file name to display in reports.
|
||||||
|
*/
|
||||||
|
private String displayName = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the file name to display in reports.
|
||||||
|
*
|
||||||
|
* @param displayName the name to display
|
||||||
|
*/
|
||||||
|
public void setDisplayFileName(String displayName) {
|
||||||
|
this.displayName = displayName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the file name to display in reports; if no display file name has been set it will default to the actual
|
||||||
|
* file name.
|
||||||
|
*
|
||||||
|
* @return the file name to display
|
||||||
|
*/
|
||||||
|
public String getDisplayFileName() {
|
||||||
|
if (displayName == null) {
|
||||||
|
return this.fileName;
|
||||||
|
}
|
||||||
|
return this.displayName;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Gets the file path of the dependency.</p>
|
* Gets the file path of the dependency.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user