001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.scm;
020
021import java.io.Serializable;
022
023/**
024 * @author Olivier Lamy
025 * @since 1.2
026 */
027public class ScmBranchParameters implements Serializable {
028    private static final long serialVersionUID = 7241536408630608707L;
029
030    private String message;
031
032    private boolean remoteBranching = false;
033
034    private boolean pinExternals = false;
035
036    private String scmRevision;
037
038    public ScmBranchParameters() {
039        this.remoteBranching = false;
040        this.pinExternals = false;
041    }
042
043    public ScmBranchParameters(String message) {
044        this.message = message;
045    }
046
047    public String getMessage() {
048        return message;
049    }
050
051    public void setMessage(String message) {
052        this.message = message;
053    }
054
055    public String getScmRevision() {
056        return scmRevision;
057    }
058
059    public void setScmRevision(String scmRevision) {
060        this.scmRevision = scmRevision;
061    }
062
063    public boolean isRemoteBranching() {
064        return remoteBranching;
065    }
066
067    public void setRemoteBranching(boolean remoteBranching) {
068        this.remoteBranching = remoteBranching;
069    }
070
071    public boolean isPinExternals() {
072        return pinExternals;
073    }
074
075    public void setPinExternals(boolean pinExternals) {
076        this.pinExternals = pinExternals;
077    }
078
079    public String toString() {
080        return "[" + scmRevision + "] " + message;
081    }
082}