KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > forrest > forrestbot > webapp > dto > ProjectDTO


1 /*
2 * Copyright 2002-2004 The Apache Software Foundation or its licensors,
3 * as applicable.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */

17 /*
18  * Created on Feb 10, 2004
19  */

20 package org.apache.forrest.forrestbot.webapp.dto;
21
22 import java.util.Date JavaDoc;
23
24 public class ProjectDTO implements Comparable JavaDoc {
25     String JavaDoc name;
26     int status;
27     Date JavaDoc lastBuilt;
28     String JavaDoc logUrl;
29     String JavaDoc url;
30     boolean isLogged;
31     boolean deployable;
32     boolean buildable;
33
34     /**
35      * @return
36      */

37     public String JavaDoc getName() {
38         return name;
39     }
40
41     /**
42      * @return
43      */

44     public int getStatus() {
45         return status;
46     }
47
48     /**
49      * @param string
50      */

51     public void setName(String JavaDoc string) {
52         name = string;
53     }
54
55     /**
56      * @param string
57      */

58     public void setStatus(int i) {
59         status = i;
60     }
61
62     /**
63      * @return
64      */

65     public Date JavaDoc getLastBuilt() {
66         return lastBuilt;
67     }
68
69     /**
70      * @param date
71      */

72     public void setLastBuilt(Date JavaDoc date) {
73         lastBuilt = date;
74     }
75
76     /**
77      * @return
78      */

79     public String JavaDoc getLogUrl() {
80         return logUrl;
81     }
82
83     /**
84      * @return
85      */

86     public String JavaDoc getUrl() {
87         return url;
88     }
89
90     /**
91      * @param string
92      */

93     public void setLogUrl(String JavaDoc string) {
94         logUrl = string;
95     }
96
97     /**
98      * @param string
99      */

100     public void setUrl(String JavaDoc string) {
101         url = string;
102     }
103
104     /**
105      * @return
106      */

107     public boolean isLogged() {
108         return isLogged;
109     }
110
111     /**
112      * @param b
113      */

114     public void setLogged(boolean b) {
115         isLogged = b;
116     }
117
118     /**
119      * @return
120      */

121     public boolean isBuildable() {
122         return buildable;
123     }
124
125     /**
126      * @return
127      */

128     public boolean isDeployable() {
129         return deployable;
130     }
131
132     /**
133      * @param b
134      */

135     public void setBuildable(boolean b) {
136         buildable = b;
137     }
138
139     /**
140      * @param b
141      */

142     public void setDeployable(boolean b) {
143         deployable = b;
144     }
145
146     /* (non-Javadoc)
147      * @see java.lang.Comparable#compareTo(java.lang.Object)
148      */

149     public int compareTo(Object JavaDoc arg0) {
150         // TODO Auto-generated method stub
151
if (arg0 instanceof ProjectDTO)
152             return getName().compareTo(((ProjectDTO)arg0).getName());
153         return 0;
154     }
155
156 }
157
Popular Tags