content: package oscfg.diagram.navigator;
  
  import java.util.Collection;
  import java.util.LinkedList;
  
  /**
   * @generated
   */
  public class OscfgNavigatorGroup extends OscfgAbstractNavigatorItem {
  
  	/**
  	 * @generated
  	 */
  	private String myGroupName;
  
  	/**
  	 * @generated
  	 */
  	private String myIcon;
  
  	/**
  	 * @generated
  	 */
  	private Collection myChildren = new LinkedList();
  
  	/**
  	 * @generated
  	 */
  	OscfgNavigatorGroup(String groupName, String icon, Object parent) {
  		super(parent);
  		myGroupName = groupName;
  		myIcon = icon;
  	}
  
  	/**
  	 * @generated
  	 */
  	public String getGroupName() {
  		return myGroupName;
  	}
  
  	/**
  	 * @generated
  	 */
  	public String getIcon() {
  		return myIcon;
  	}
  
  	/**
  	 * @generated
  	 */
  	public Object[] getChildren() {
  		return myChildren.toArray();
  	}
  
  	/**
  	 * @generated
  	 */
  	public void addChildren(Collection children) {
  		myChildren.addAll(children);
  	}
  
  	/**
  	 * @generated
  	 */
  	public void addChild(Object child) {
  		myChildren.add(child);
  	}
  
  	/**
  	 * @generated
  	 */
  	public boolean isEmpty() {
  		return myChildren.size() == 0;
  	}
  
  	/**
  	 * @generated
  	 */
  	public boolean equals(Object obj) {
  		if (obj instanceof oscfg.diagram.navigator.OscfgNavigatorGroup) {
  			oscfg.diagram.navigator.OscfgNavigatorGroup anotherGroup = (oscfg.diagram.navigator.OscfgNavigatorGroup) obj;
  			if (getGroupName().equals(anotherGroup.getGroupName())) {
  				return getParent().equals(anotherGroup.getParent());
  			}
  		}
  		return super.equals(obj);
  	}
  
  	/**
  	 * @generated
  	 */
  	public int hashCode() {
  		return getGroupName().hashCode();
  	}
  
  }
  