added displayFileName field to the dependency class

Former-commit-id: 248f5397d37ea6e2f333dc0fe357188865bdb446
This commit is contained in:
Jeremy Long
2014-05-10 06:57:44 -04:00
parent 77486dffd4
commit d125a7f09d

View File

@@ -177,6 +177,33 @@ public class Dependency implements Comparable<Dependency> {
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>
* Gets the file path of the dependency.</p>