Coverage Report - org.apache.archiva.web.xmlrpc.api.beans.RemoteRepository
 
Classes in this File Line Coverage Branch Coverage Complexity
RemoteRepository
0%
0/31
0%
0/14
0
 
 1  
 package org.apache.archiva.web.xmlrpc.api.beans;
 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  
 import com.atlassian.xmlrpc.ServiceBean;
 25  
 import com.atlassian.xmlrpc.ServiceBeanField;
 26  
 
 27  
 @ServiceBean
 28  
 public class RemoteRepository
 29  
     implements Serializable
 30  
 {   
 31  
     private String id;
 32  
 
 33  
     private String name;
 34  
 
 35  
     private String url;
 36  
     
 37  
     private String layout;
 38  
 
 39  
     public RemoteRepository()
 40  0
     {
 41  
         
 42  0
     }
 43  
     
 44  
     public RemoteRepository( String id, String name, String url, String layout )
 45  0
     {
 46  0
         this.id = id;
 47  0
         this.name = name;
 48  0
         this.url = url;
 49  0
         this.layout = layout;
 50  0
     }
 51  
     
 52  
     public boolean equals(Object other)
 53  
     {
 54  0
         if ( this == other)
 55  
         {
 56  0
             return true;
 57  
         }
 58  
         
 59  0
         if ( !(other instanceof RemoteRepository) )
 60  
         {
 61  0
             return false;
 62  
         }
 63  
         
 64  0
         RemoteRepository that = (RemoteRepository) other;
 65  0
         boolean result = true;
 66  0
         result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
 67  0
         return result;
 68  
     } 
 69  
     
 70  
     public String getId()
 71  
     {
 72  0
         return this.id;
 73  
     } 
 74  
     
 75  
     public String getLayout()
 76  
     {
 77  0
         return this.layout;
 78  
     } 
 79  
     
 80  
     public String getName()
 81  
     {
 82  0
         return this.name;
 83  
     } 
 84  
     
 85  
     public String getUrl()
 86  
     {
 87  0
         return this.url;
 88  
     }
 89  
     
 90  
     public int hashCode()
 91  
     {
 92  0
         int result = 17;
 93  0
         result = 37 * result + ( id != null ? id.hashCode() : 0 );
 94  0
         return result;
 95  
     }
 96  
     
 97  
     @ServiceBeanField( "id" )
 98  
     public void setId(String id)
 99  
     {
 100  0
         this.id = id;
 101  0
     }
 102  
     
 103  
     @ServiceBeanField( "layout" )
 104  
     public void setLayout(String layout)
 105  
     {
 106  0
         this.layout = layout;
 107  0
     }
 108  
     
 109  
     @ServiceBeanField( "name" )
 110  
     public void setName(String name)
 111  
     {
 112  0
         this.name = name;
 113  0
     } 
 114  
     
 115  
     @ServiceBeanField( "url" )
 116  
     public void setUrl(String url)
 117  
     {
 118  0
         this.url = url;
 119  0
     }     
 120  
 }