View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:22:14,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.xmlrpc.project;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
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   * Class ContinuumProjectState.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class ContinuumProjectState
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field name.
42       */
43      private String name;
44  
45  
46        //-----------/
47       //- Methods -/
48      //-----------/
49  
50      /**
51       * Get the name field.
52       * 
53       * @return String
54       */
55      public String getName()
56      {
57          return this.name;
58      } //-- String getName()
59  
60      /**
61       * Set the name field.
62       * 
63       * @param name
64       */
65      public void setName( String name )
66      {
67          this.name = name;
68      } //-- void setName( String )
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      // TODO: maybe move these to another class
82      public static final int TRIGGER_FORCED = 1;
83  
84      // TODO: remove
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 }