Coverage Report - org.apache.shindig.social.core.model.AddressImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
AddressImpl
94%
32/34
N/A
1
 
 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 under the License.
 17  
  */
 18  
 package org.apache.shindig.social.core.model;
 19  
 
 20  
 import org.apache.shindig.social.opensocial.model.Address;
 21  
 
 22  
 public class AddressImpl implements Address {
 23  
   private String country;
 24  
   private Float latitude;
 25  
   private Float longitude;
 26  
   private String locality;
 27  
   private String postalCode;
 28  
   private String region;
 29  
   private String streetAddress;
 30  
   private String type;
 31  
   private String formatted;
 32  
   private Boolean primary;
 33  
 
 34  20
   public AddressImpl() { }
 35  
 
 36  58
   public AddressImpl(String formatted) {
 37  58
     this.formatted = formatted;
 38  58
   }
 39  
 
 40  
   public String getCountry() {
 41  16
     return country;
 42  
   }
 43  
 
 44  
   public void setCountry(String country) {
 45  9
     this.country = country;
 46  9
   }
 47  
 
 48  
   public Float getLatitude() {
 49  17
     return latitude;
 50  
   }
 51  
 
 52  
   public void setLatitude(Float latitude) {
 53  18
     this.latitude = latitude;
 54  18
   }
 55  
 
 56  
   public String getLocality() {
 57  15
     return locality;
 58  
   }
 59  
 
 60  
   public void setLocality(String locality) {
 61  9
     this.locality = locality;
 62  9
   }
 63  
 
 64  
   public Float getLongitude() {
 65  17
     return longitude;
 66  
   }
 67  
 
 68  
   public void setLongitude(Float longitude) {
 69  18
     this.longitude = longitude;
 70  18
   }
 71  
 
 72  
   public String getPostalCode() {
 73  15
     return postalCode;
 74  
   }
 75  
 
 76  
   public void setPostalCode(String postalCode) {
 77  9
     this.postalCode = postalCode;
 78  9
   }
 79  
 
 80  
   public String getRegion() {
 81  15
     return region;
 82  
   }
 83  
 
 84  
   public void setRegion(String region) {
 85  9
     this.region = region;
 86  9
   }
 87  
 
 88  
   public String getStreetAddress() {
 89  15
     return streetAddress;
 90  
   }
 91  
 
 92  
   public void setStreetAddress(String streetAddress) {
 93  9
     this.streetAddress = streetAddress;
 94  9
   }
 95  
 
 96  
   public String getType() {
 97  15
     return type;
 98  
   }
 99  
 
 100  
   public void setType(String type) {
 101  9
     this.type = type;
 102  9
   }
 103  
 
 104  
   public String getFormatted() {
 105  23
     return formatted;
 106  
   }
 107  
 
 108  
   public void setFormatted(String formatted) {
 109  16
     this.formatted = formatted;
 110  16
   }
 111  
 
 112  
   public Boolean getPrimary() {
 113  13
     return primary;
 114  
   }
 115  
 
 116  
   public void setPrimary(Boolean primary) {
 117  0
     this.primary = primary;
 118  0
   }
 119  
 }