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 * @author Olivier Lamy 026 * @since 1.2 027 */ 028public class ScmTagParameters 029 implements Serializable 030{ 031 private static final long serialVersionUID = 7241536408630606807L; 032 033 private String message; 034 035 private boolean remoteTagging = false; 036 037 private boolean pinExternals = false; 038 039 private boolean sign = false; 040 041 private String scmRevision; 042 043 public ScmTagParameters() 044 { 045 this.remoteTagging = false; 046 this.pinExternals = false; 047 this.sign = false; 048 } 049 050 public ScmTagParameters( String message ) 051 { 052 this.message = message; 053 } 054 055 public String getMessage() 056 { 057 return message; 058 } 059 060 public void setMessage( String message ) 061 { 062 this.message = message; 063 } 064 065 public boolean isRemoteTagging() 066 { 067 return remoteTagging; 068 } 069 070 public void setRemoteTagging( boolean remoteTagging ) 071 { 072 this.remoteTagging = remoteTagging; 073 } 074 075 public boolean isPinExternals() 076 { 077 return pinExternals; 078 } 079 080 public void setPinExternals( boolean pinExternals ) 081 { 082 this.pinExternals = pinExternals; 083 } 084 085 public boolean isSign() 086 { 087 return sign; 088 } 089 090 public void setSign( boolean sign ) 091 { 092 this.sign = sign; 093 } 094 095 public String getScmRevision() 096 { 097 return scmRevision; 098 } 099 100 public void setScmRevision( String scmRevision ) 101 { 102 this.scmRevision = scmRevision; 103 } 104 105 public String toString() 106 { 107 return "[" + scmRevision + "] " + message; 108 } 109}