001package org.apache.maven.scm; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import java.io.Serializable; 023 024/** 025 * parameters used by implementation to perform untag operation 026 * 027 * @since 1.11.2 028 */ 029public class ScmUntagParameters 030 implements Serializable 031{ 032 /** 033 * serial version id 034 */ 035 private static final long serialVersionUID = -7508529445894924957L; 036 037 /** 038 * id of tag to delete/remove 039 */ 040 private String tag; 041 042 /** 043 * commit message 044 */ 045 private String message; 046 047 /** 048 * constructor with tag and message 049 * 050 * @param tag tag id 051 * @param message commit message 052 */ 053 public ScmUntagParameters( String tag, String message ) 054 { 055 this.tag = tag; 056 this.message = message; 057 } 058 059 /** 060 * get tag id 061 * 062 * @return tag id 063 */ 064 public String getTag() 065 { 066 return tag; 067 } 068 069 /** 070 * set tag id 071 * 072 * @param tag tag id 073 */ 074 public void setTag( String tag ) 075 { 076 this.tag = tag; 077 } 078 079 /** 080 * get commit message 081 * 082 * @return commit message 083 */ 084 public String getMessage() 085 { 086 return message; 087 } 088 089 /** 090 * set commit message 091 * 092 * @param message commit message 093 */ 094 public void setMessage( String message ) 095 { 096 this.message = message; 097 } 098 099 @Override 100 public String toString() 101 { 102 return ScmUntagParameters.class.getSimpleName() + " [tag=" + tag + ", message=" + message + "]"; 103 } 104}