01: package net.sourceforge.pmd.dfa.report;
02:
03: public class PackageNode extends AbstractReportNode {
04:
05: private String packageName;
06:
07: public PackageNode(String packageName) {
08: this .packageName = packageName;
09: }
10:
11: public String getPackageName() {
12: return this .packageName;
13: }
14:
15: public boolean equalsNode(AbstractReportNode arg0) {
16: if (!(arg0 instanceof PackageNode)) {
17: return false;
18: }
19:
20: return ((PackageNode) arg0).getPackageName().equals(
21: this.packageName);
22: }
23:
24: }
|