KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > tasklist > bugs > issues > Issue


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.tasklist.bugs.issues;
21
22 import java.net.URL JavaDoc;
23 import java.util.ArrayList JavaDoc;
24 import java.util.List JavaDoc;
25
26 /**
27  * An issue
28  */

29 public class Issue {
30     /** Parent list of issues. */
31     private IssuesList list;
32
33     /** List of comments. <String> */
34     public List JavaDoc comments = new ArrayList JavaDoc();
35
36     /** List of issues this one depends on. <Issue> */
37     public List JavaDoc dependsOn = new ArrayList JavaDoc();
38
39     /** ID of this issue. It is unique in a list. */
40     public int id;
41
42     /** Component. -1 means unknown */
43     public int component = -1;
44     
45     /** Subcomponent. -1 means unknown*/
46     public int subcomponent;
47     
48     /** status of this issue */
49     public int status;
50     
51     /** Platform. -1 means all*/
52     public int platform;
53     
54     /** Operating system. -1 means all */
55     public int os;
56     
57     /** Version */
58     public int version;
59     
60     /** priority */
61     public int priority;
62     
63     /** Type of this issue (bug, enhancement etc) */
64     public int type;
65     
66     /** Target version */
67     public int targetVersion;
68     
69     /** Person this issue is assigned to. */
70     public int assignedTo;
71     
72     /** Associated URL. May be null.*/
73     public URL JavaDoc url;
74     
75     /** Summary. */
76     public String JavaDoc summary = "";
77     
78     /** Resolution */
79     public int resolution;
80     
81     /**
82      * Creates a new instance of Issue
83      * Don't use this constructor. Use IssuesList.createIssue() instead
84      *
85      * @param list parent list for this issue
86      * @param id id of this issue
87      */

88     Issue(IssuesList list, int id) {
89         this.list = list;
90         this.id = id;
91     }
92 }
93
Popular Tags