View Javadoc
1   package org.apache.maven.scm;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *    http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.io.Serializable;
23  
24  /**
25   * parameters used by implementation to perform untag operation
26   *
27   * @since 1.11.2
28   */
29  public class ScmUntagParameters
30      implements Serializable
31  {
32      /**
33       * serial version id
34       */
35      private static final long serialVersionUID = -7508529445894924957L;
36  
37      /**
38       * id of tag to delete/remove
39       */
40      private String tag;
41  
42      /**
43       * commit message
44       */
45      private String message;
46  
47      /**
48       * constructor with tag and message
49       *
50       * @param tag     tag id
51       * @param message commit message
52       */
53      public ScmUntagParameters( String tag, String message )
54      {
55          this.tag = tag;
56          this.message = message;
57      }
58  
59      /**
60       * get tag id
61       *
62       * @return tag id
63       */
64      public String getTag()
65      {
66          return tag;
67      }
68  
69      /**
70       * set tag id
71       *
72       * @param tag tag id
73       */
74      public void setTag( String tag )
75      {
76          this.tag = tag;
77      }
78  
79      /**
80       * get commit message
81       *
82       * @return commit message
83       */
84      public String getMessage()
85      {
86          return message;
87      }
88  
89      /**
90       * set commit message
91       *
92       * @param message commit message
93       */
94      public void setMessage( String message )
95      {
96          this.message = message;
97      }
98  
99      @Override
100     public String toString()
101     {
102         return ScmUntagParameters.class.getSimpleName() + " [tag=" + tag + ", message=" + message + "]";
103     }
104 }