KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > dfa > report > PackageNode


1 package net.sourceforge.pmd.dfa.report;
2
3 public class PackageNode extends AbstractReportNode {
4
5     private String JavaDoc packageName;
6
7     public PackageNode(String JavaDoc packageName) {
8         this.packageName = packageName;
9     }
10
11     public String JavaDoc 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(this.packageName);
21     }
22
23 }
24
Popular Tags