This project has retired. For details please refer to its Attic page.
Coverage Report
Coverage Report - org.apache.ws.scout.registry.infomodel.PostalAddressImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
PostalAddressImpl
88%
32/36
N/A
1
 
 1  
 /*
 2  
  * Copyright 2001-2004 The Apache Software Foundation.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 package org.apache.ws.scout.registry.infomodel;
 18  
 
 19  
 import javax.xml.registry.infomodel.ClassificationScheme;
 20  
 import javax.xml.registry.infomodel.PostalAddress;
 21  
 
 22  
 /**
 23  
  * Implements PostalAddress Interface
 24  
  * Implements JAXR Interface.
 25  
  * For futher details, look into the JAXR API Javadoc.
 26  
  *
 27  
  * @author Anil Saldhana  <anil@apache.org>
 28  
  */
 29  
 public class PostalAddressImpl extends ExtensibleObjectImpl implements PostalAddress
 30  
 {
 31  
     private static final String EMPTY_STRING = "";
 32  100
     private String street = EMPTY_STRING;
 33  100
     private String streetNumber = EMPTY_STRING;
 34  100
     private String city = EMPTY_STRING;
 35  100
     private String stateOrProvince = EMPTY_STRING;
 36  100
     private String postalCode = EMPTY_STRING;
 37  100
     private String country = EMPTY_STRING;
 38  100
     private String type = EMPTY_STRING;
 39  
     private ClassificationScheme postalScheme;
 40  
 
 41  
     /**
 42  
      * Creates a new instance of PostalAddressImpl
 43  
      */
 44  
     public PostalAddressImpl(ClassificationScheme postalScheme)
 45  2
     {
 46  2
         this.postalScheme = postalScheme;
 47  2
     }
 48  
 
 49  
     public PostalAddressImpl()
 50  98
     {
 51  98
     }
 52  
 
 53  
     public String getCity()
 54  
     {
 55  34
         return city;
 56  
     }
 57  
 
 58  
     public void setCity(String city)
 59  
     {
 60  98
         this.city = city;
 61  98
     }
 62  
 
 63  
     public String getCountry()
 64  
     {
 65  34
         return country;
 66  
     }
 67  
 
 68  
     public void setCountry(String country)
 69  
     {
 70  98
         this.country = country;
 71  98
     }
 72  
 
 73  
     public String getPostalCode()
 74  
     {
 75  34
         return postalCode;
 76  
     }
 77  
 
 78  
     public void setPostalCode(String postalCode)
 79  
     {
 80  98
         this.postalCode = postalCode;
 81  98
     }
 82  
 
 83  
     public ClassificationScheme getPostalScheme()
 84  
     {
 85  0
         return postalScheme;
 86  
     }
 87  
 
 88  
     public void setPostalScheme(ClassificationScheme postalScheme)
 89  
     {
 90  0
         this.postalScheme = postalScheme;
 91  0
     }
 92  
 
 93  
     public String getStateOrProvince()
 94  
     {
 95  34
         return stateOrProvince;
 96  
     }
 97  
 
 98  
     public void setStateOrProvince(String stateOrProvince)
 99  
     {
 100  98
         this.stateOrProvince = stateOrProvince;
 101  98
     }
 102  
 
 103  
     public String getStreet()
 104  
     {
 105  34
         return street;
 106  
     }
 107  
 
 108  
     public void setStreet(String street)
 109  
     {
 110  98
         this.street = street;
 111  98
     }
 112  
 
 113  
     public String getStreetNumber()
 114  
     {
 115  34
         return streetNumber;
 116  
     }
 117  
 
 118  
     public void setStreetNumber(String streetNumber)
 119  
     {
 120  98
         this.streetNumber = streetNumber;
 121  98
     }
 122  
 
 123  
     public String getType()
 124  
     {
 125  0
         return type;
 126  
     }
 127  
 
 128  
     public void setType(String type)
 129  
     {
 130  30
         this.type = type;
 131  30
     }
 132  
 }