View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.scm;
20  
21  import java.io.Serializable;
22  
23  /**
24   * @author Olivier Lamy
25   * @since 1.2
26   */
27  public class ScmTagParameters implements Serializable {
28      private static final long serialVersionUID = 7241536408630606807L;
29  
30      private String message;
31  
32      private boolean remoteTagging = false;
33  
34      private boolean pinExternals = false;
35  
36      private boolean sign = false;
37  
38      private String scmRevision;
39  
40      public ScmTagParameters() {
41          this.remoteTagging = false;
42          this.pinExternals = false;
43          this.sign = false;
44      }
45  
46      public ScmTagParameters(String message) {
47          this.message = message;
48      }
49  
50      public String getMessage() {
51          return message;
52      }
53  
54      public void setMessage(String message) {
55          this.message = message;
56      }
57  
58      public boolean isRemoteTagging() {
59          return remoteTagging;
60      }
61  
62      public void setRemoteTagging(boolean remoteTagging) {
63          this.remoteTagging = remoteTagging;
64      }
65  
66      public boolean isPinExternals() {
67          return pinExternals;
68      }
69  
70      public void setPinExternals(boolean pinExternals) {
71          this.pinExternals = pinExternals;
72      }
73  
74      public boolean isSign() {
75          return sign;
76      }
77  
78      public void setSign(boolean sign) {
79          this.sign = sign;
80      }
81  
82      public String getScmRevision() {
83          return scmRevision;
84      }
85  
86      public void setScmRevision(String scmRevision) {
87          this.scmRevision = scmRevision;
88      }
89  
90      public String toString() {
91          return "[" + scmRevision + "] " + message;
92      }
93  }