View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello
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.continuum.xmlrpc.utils.BuildTrigger;
20  import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
21  import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
22  import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
23  import org.apache.maven.continuum.xmlrpc.system.Installation;
24  import org.apache.maven.continuum.xmlrpc.system.Profile;
25  import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
26  
27  /**
28   * Class ContinuumProjectState.
29   * 
30   * @version $Revision$ $Date$
31   */
32  @SuppressWarnings( "all" )
33  public class ContinuumProjectState
34      implements java.io.Serializable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Field name.
43       */
44      private String name;
45  
46  
47        //-----------/
48       //- Methods -/
49      //-----------/
50  
51      /**
52       * Get the name field.
53       * 
54       * @return String
55       */
56      public String getName()
57      {
58          return this.name;
59      } //-- String getName()
60  
61      /**
62       * Set the name field.
63       * 
64       * @param name
65       */
66      public void setName( String name )
67      {
68          this.name = name;
69      } //-- void setName( String )
70  
71      
72      public final static int NEW = 1;
73      public final static int OK = 2;
74      public final static int FAILED = 3;
75      public final static int ERROR = 4;
76      public final static int BUILDING = 6;
77      public final static int CHECKING_OUT = 7;
78      public final static int UPDATING = 8;
79      public final static int WARNING = 9;
80      public final static int CHECKEDOUT = 10;
81  
82      // TODO: maybe move these to another class
83      public static final int TRIGGER_FORCED = 1;
84  
85      // TODO: remove
86      public static final int TRIGGER_SCHEDULED = 0;
87  
88      public static final int TRIGGER_UNKNOWN = TRIGGER_SCHEDULED;
89  
90      public String getI18nKey()
91      {
92          return "org.apache.maven.continuum.project.state." + name;
93      }
94  
95      public boolean equals( Object object )
96      {
97          if ( !( object instanceof ContinuumProjectState ) )
98          {
99              return false;
100         }
101 
102         ContinuumProjectState other = (ContinuumProjectState) object;
103 
104         return name.equals( other.name );
105     }
106 
107     public int hashCode()
108     {
109         return name.hashCode();
110     }
111 
112     public String toString()
113     {
114         return name;
115     }
116            
117 }