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   * parameters used by implementation to perform untag operation
25   *
26   * @since 1.11.2
27   */
28  public class ScmUntagParameters implements Serializable {
29      /**
30       * serial version id
31       */
32      private static final long serialVersionUID = -7508529445894924957L;
33  
34      /**
35       * id of tag to delete/remove
36       */
37      private String tag;
38  
39      /**
40       * commit message
41       */
42      private String message;
43  
44      /**
45       * constructor with tag and message
46       *
47       * @param tag     tag id
48       * @param message commit message
49       */
50      public ScmUntagParameters(String tag, String message) {
51          this.tag = tag;
52          this.message = message;
53      }
54  
55      /**
56       * get tag id
57       *
58       * @return tag id
59       */
60      public String getTag() {
61          return tag;
62      }
63  
64      /**
65       * set tag id
66       *
67       * @param tag tag id
68       */
69      public void setTag(String tag) {
70          this.tag = tag;
71      }
72  
73      /**
74       * get commit message
75       *
76       * @return commit message
77       */
78      public String getMessage() {
79          return message;
80      }
81  
82      /**
83       * set commit message
84       *
85       * @param message commit message
86       */
87      public void setMessage(String message) {
88          this.message = message;
89      }
90  
91      @Override
92      public String toString() {
93          return ScmUntagParameters.class.getSimpleName() + " [tag=" + tag + ", message=" + message + "]";
94      }
95  }