View Javadoc

1   package org.apache.maven.plugins.patchtracker.patching;
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   * @author Olivier Lamy
26   */
27  public class PatchRepositoryResult
28      implements Serializable
29  {
30      private String title;
31  
32      private String htmlUrl;
33  
34      private String patchUrl;
35  
36      private String description;
37  
38      private String patchContent;
39  
40      public PatchRepositoryResult()
41      {
42          // no op
43      }
44  
45      public String getTitle()
46      {
47          return title;
48      }
49  
50      public PatchRepositoryResult setTitle( String title )
51      {
52          this.title = title;
53          return this;
54      }
55  
56      public String getHtmlUrl()
57      {
58          return htmlUrl;
59      }
60  
61      public PatchRepositoryResult setHtmlUrl( String htmlUrl )
62      {
63          this.htmlUrl = htmlUrl;
64          return this;
65      }
66  
67      public String getPatchUrl()
68      {
69          return patchUrl;
70      }
71  
72      public PatchRepositoryResult setPatchUrl( String patchUrl )
73      {
74          this.patchUrl = patchUrl;
75          return this;
76      }
77  
78      public String getDescription()
79      {
80          return description;
81      }
82  
83      public PatchRepositoryResult setDescription( String description )
84      {
85          this.description = description;
86          return this;
87      }
88  
89      public String getPatchContent()
90      {
91          return patchContent;
92      }
93  
94      public PatchRepositoryResult setPatchContent( String patchContent )
95      {
96          this.patchContent = patchContent;
97          return this;
98      }
99  
100     @Override
101     public String toString()
102     {
103         final StringBuilder sb = new StringBuilder();
104         sb.append( "PatchRepositoryResult" );
105         sb.append( "{title='" ).append( title ).append( '\'' );
106         sb.append( ", htmlUrl='" ).append( htmlUrl ).append( '\'' );
107         sb.append( ", patchUrl='" ).append( patchUrl ).append( '\'' );
108         sb.append( ", description='" ).append( description ).append( '\'' );
109         sb.append( ", patchContent='" ).append( patchContent ).append( '\'' );
110         sb.append( '}' );
111         return sb.toString();
112     }
113 }