/* * Copyright (c) 2010-2011 United States Government as represented by the Administrator for The National Aeronautics and Space Administration. All Rights Reserved. */ package net.certware.argument.cae.navigator; import org.eclipse.core.resources.IFile; /** * Tree data object for navigator contribution. * @author mrb * @since 1.0 */ public class TreeData { /** * Field COUNT_TYPE_ERROR. * (value is 0) */ public static final int COUNT_TYPE_ERROR = 0; /** * Field COUNT_TYPE_OPEN. * (value is 1) */ public static final int COUNT_TYPE_OPEN = 1; /** * Field COUNT_TYPE_CLOSED. * (value is 2) */ public static final int COUNT_TYPE_CLOSED = 2; /** resource file reference */ IFile ifile = null; /** description */ String description = null; /** count */ int count = 0; /** type */ int type = 0; /** * Constructor empty. */ public TreeData() { } /** * Constructor for full specification. * @param ifile resource file * @param description description * @param count count * @param type type, one of COUNT_TYPE */ public TreeData(IFile ifile, String description, int count, int type) { this.ifile = ifile; this.description = description; this.count = count; this.type = type; } /** * Gets the resource file. * @return the resource file */ public IFile getIfile() { return ifile; } /** * Gets the description * @return the description */ public String getDescription() { return description; } /** * Gets the condition count value. * @return condition count */ public int getCount() { return count; } /** * Gets the count type. * @return the type, one of COUNT_TYPE */ public int getType() { return type; } }