View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.0.1 on 2009-09-09 03:30:24,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.model;
9   
10  /**
11   * 
12   *         
13   *         The <code>&lt;scm&gt;</code> element contains
14   * informations required to the SCM
15   *         (Source Control Management) of the project.
16   *         
17   *       
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class Scm
22      implements java.io.Serializable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * 
31       *             
32       *             The source control management system URL
33       *             that describes the repository and how to connect
34       * to the
35       *             repository. For more information, see the
36       *             <a
37       * href="http://maven.apache.org/scm/scm-url-format.html">URL
38       * format</a>
39       *             and <a
40       * href="http://maven.apache.org/scm/scms-overview.html">list
41       * of supported SCMs</a>.
42       *             This connection is read-only.
43       *             
44       *           
45       */
46      private String connection;
47  
48      /**
49       * 
50       *             
51       *             Just like <code>connection</code>, but for
52       * developers, i.e. this scm connection
53       *             will not be read only.
54       *             
55       *           
56       */
57      private String developerConnection;
58  
59      /**
60       * The tag of current code. By default, it's set to HEAD during
61       * development.
62       */
63      private String tag = "HEAD";
64  
65      /**
66       * The URL to the project's browsable SCM repository, such as
67       * ViewVC or Fisheye.
68       */
69      private String url;
70  
71  
72        //-----------/
73       //- Methods -/
74      //-----------/
75  
76      /**
77       * Get the source control management system URL
78       *             that describes the repository and how to connect
79       * to the
80       *             repository. For more information, see the
81       *             <a
82       * href="http://maven.apache.org/scm/scm-url-format.html">URL
83       * format</a>
84       *             and <a
85       * href="http://maven.apache.org/scm/scms-overview.html">list
86       * of supported SCMs</a>.
87       *             This connection is read-only.
88       * 
89       * @return String
90       */
91      public String getConnection()
92      {
93          return this.connection;
94      } //-- String getConnection()
95  
96      /**
97       * Get just like <code>connection</code>, but for developers,
98       * i.e. this scm connection
99       *             will not be read only.
100      * 
101      * @return String
102      */
103     public String getDeveloperConnection()
104     {
105         return this.developerConnection;
106     } //-- String getDeveloperConnection()
107 
108     /**
109      * Get the tag of current code. By default, it's set to HEAD
110      * during development.
111      * 
112      * @return String
113      */
114     public String getTag()
115     {
116         return this.tag;
117     } //-- String getTag()
118 
119     /**
120      * Get the URL to the project's browsable SCM repository, such
121      * as ViewVC or Fisheye.
122      * 
123      * @return String
124      */
125     public String getUrl()
126     {
127         return this.url;
128     } //-- String getUrl()
129 
130     /**
131      * Set the source control management system URL
132      *             that describes the repository and how to connect
133      * to the
134      *             repository. For more information, see the
135      *             <a
136      * href="http://maven.apache.org/scm/scm-url-format.html">URL
137      * format</a>
138      *             and <a
139      * href="http://maven.apache.org/scm/scms-overview.html">list
140      * of supported SCMs</a>.
141      *             This connection is read-only.
142      * 
143      * @param connection
144      */
145     public void setConnection( String connection )
146     {
147         this.connection = connection;
148     } //-- void setConnection( String )
149 
150     /**
151      * Set just like <code>connection</code>, but for developers,
152      * i.e. this scm connection
153      *             will not be read only.
154      * 
155      * @param developerConnection
156      */
157     public void setDeveloperConnection( String developerConnection )
158     {
159         this.developerConnection = developerConnection;
160     } //-- void setDeveloperConnection( String )
161 
162     /**
163      * Set the tag of current code. By default, it's set to HEAD
164      * during development.
165      * 
166      * @param tag
167      */
168     public void setTag( String tag )
169     {
170         this.tag = tag;
171     } //-- void setTag( String )
172 
173     /**
174      * Set the URL to the project's browsable SCM repository, such
175      * as ViewVC or Fisheye.
176      * 
177      * @param url
178      */
179     public void setUrl( String url )
180     {
181         this.url = url;
182     } //-- void setUrl( String )
183 
184 
185 }