Coverage Report - org.apache.maven.plugins.patchtracker.patching.PatchRepositoryRequest
 
Classes in this File Line Coverage Branch Coverage Complexity
PatchRepositoryRequest
0 %
0/22
N/A
1
 
 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 PatchRepositoryRequest
 28  
     implements Serializable
 29  
 {
 30  
     /**
 31  
      * for github user/organization  : github.com/apache use apache
 32  
      */
 33  
     protected String organization;
 34  
 
 35  
     /**
 36  
      * for github repo  : github.com/apache/maven-3 use maven-3
 37  
      */
 38  
     protected String repository;
 39  
 
 40  
     /**
 41  
      * for github pull request id
 42  
      *
 43  
      * @parameter expression="${patch.pullrequest.id}" default-value=""
 44  
      */
 45  
     protected String id;
 46  
 
 47  
 
 48  
     /**
 49  
      * for github api url https://api.github.com/repos
 50  
      */
 51  
     protected String url;
 52  
 
 53  
     public PatchRepositoryRequest()
 54  0
     {
 55  
         // no op
 56  0
     }
 57  
 
 58  
     public String getOrganization()
 59  
     {
 60  0
         return organization;
 61  
     }
 62  
 
 63  
     public PatchRepositoryRequest setOrganization( String organization )
 64  
     {
 65  0
         this.organization = organization;
 66  0
         return this;
 67  
     }
 68  
 
 69  
     public String getRepository()
 70  
     {
 71  0
         return repository;
 72  
     }
 73  
 
 74  
     public PatchRepositoryRequest setRepository( String repository )
 75  
     {
 76  0
         this.repository = repository;
 77  0
         return this;
 78  
     }
 79  
 
 80  
     public String getId()
 81  
     {
 82  0
         return id;
 83  
     }
 84  
 
 85  
     public PatchRepositoryRequest setId( String id )
 86  
     {
 87  0
         this.id = id;
 88  0
         return this;
 89  
     }
 90  
 
 91  
     public String getUrl()
 92  
     {
 93  0
         return url;
 94  
     }
 95  
 
 96  
     public PatchRepositoryRequest setUrl( String url )
 97  
     {
 98  0
         this.url = url;
 99  0
         return this;
 100  
     }
 101  
 
 102  
     @Override
 103  
     public String toString()
 104  
     {
 105  0
         final StringBuilder sb = new StringBuilder();
 106  0
         sb.append( "PatchRepositoryRequest" );
 107  0
         sb.append( "{organization='" ).append( organization ).append( '\'' );
 108  0
         sb.append( ", repository='" ).append( repository ).append( '\'' );
 109  0
         sb.append( ", id='" ).append( id ).append( '\'' );
 110  0
         sb.append( ", url='" ).append( url ).append( '\'' );
 111  0
         sb.append( '}' );
 112  0
         return sb.toString();
 113  
     }
 114  
 }