001 package nl.cwi.sen1.error.model; 002 003 import javax.swing.tree.DefaultMutableTreeNode; 004 005 006 public class GroupNode extends DefaultMutableTreeNode { 007 public final static int NO_GROUP = 0; 008 public final static int FILE_GROUP = 1; 009 public final static int DESCRIPTION_GROUP = 2; 010 011 private String groupName; 012 private int groupType; 013 014 public GroupNode(String name, int type) { 015 super(name); 016 this.groupName = name; 017 this.groupType = type; 018 } 019 020 public String getGroupName() { 021 return groupName; 022 } 023 024 public int getGroupType() { 025 return groupType; 026 } 027 028 public String toString() { 029 return groupName + ": " + getChildCount(); 030 } 031 }