1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
9
10
11
12
13
14 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15 import org.apache.continuum.xmlrpc.repository.AbstractPurgeConfiguration;
16 import org.apache.continuum.xmlrpc.repository.DirectoryPurgeConfiguration;
17 import org.apache.continuum.xmlrpc.repository.LocalRepository;
18 import org.apache.continuum.xmlrpc.repository.RepositoryPurgeConfiguration;
19 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
20 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
21 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
22 import org.apache.maven.continuum.xmlrpc.system.Installation;
23 import org.apache.maven.continuum.xmlrpc.system.Profile;
24 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
25
26
27
28
29
30
31 @SuppressWarnings( "all" )
32 public class ContinuumProjectState
33 implements java.io.Serializable
34 {
35
36
37
38
39
40
41
42
43 private String name;
44
45
46
47
48
49
50
51
52
53
54
55 public String getName()
56 {
57 return this.name;
58 }
59
60
61
62
63
64
65 public void setName( String name )
66 {
67 this.name = name;
68 }
69
70
71 public final static int NEW = 1;
72 public final static int OK = 2;
73 public final static int FAILED = 3;
74 public final static int ERROR = 4;
75 public final static int BUILDING = 6;
76 public final static int CHECKING_OUT = 7;
77 public final static int UPDATING = 8;
78 public final static int WARNING = 9;
79 public final static int CHECKEDOUT = 10;
80
81
82 public static final int TRIGGER_FORCED = 1;
83
84
85 public static final int TRIGGER_SCHEDULED = 0;
86
87 public static final int TRIGGER_UNKNOWN = TRIGGER_SCHEDULED;
88
89 public String getI18nKey()
90 {
91 return "org.apache.maven.continuum.project.state." + name;
92 }
93
94 public boolean equals( Object object )
95 {
96 if ( !( object instanceof ContinuumProjectState ) )
97 {
98 return false;
99 }
100
101 ContinuumProjectState other = (ContinuumProjectState) object;
102
103 return name.equals( other.name );
104 }
105
106 public int hashCode()
107 {
108 return name.hashCode();
109 }
110
111 public String toString()
112 {
113 return name;
114 }
115
116 }