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   * @author Olivier Lamy
25   * @since 1.2
26   */
27  public class ScmBranchParameters implements Serializable {
28      private static final long serialVersionUID = 7241536408630608707L;
29  
30      private String message;
31  
32      private boolean remoteBranching = false;
33  
34      private boolean pinExternals = false;
35  
36      private String scmRevision;
37  
38      public ScmBranchParameters() {
39          this.remoteBranching = false;
40          this.pinExternals = false;
41      }
42  
43      public ScmBranchParameters(String message) {
44          this.message = message;
45      }
46  
47      public String getMessage() {
48          return message;
49      }
50  
51      public void setMessage(String message) {
52          this.message = message;
53      }
54  
55      public String getScmRevision() {
56          return scmRevision;
57      }
58  
59      public void setScmRevision(String scmRevision) {
60          this.scmRevision = scmRevision;
61      }
62  
63      public boolean isRemoteBranching() {
64          return remoteBranching;
65      }
66  
67      public void setRemoteBranching(boolean remoteBranching) {
68          this.remoteBranching = remoteBranching;
69      }
70  
71      public boolean isPinExternals() {
72          return pinExternals;
73      }
74  
75      public void setPinExternals(boolean pinExternals) {
76          this.pinExternals = pinExternals;
77      }
78  
79      public String toString() {
80          return "[" + scmRevision + "] " + message;
81      }
82  }