| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| PostalCodeContract |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2006-2011 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php | |
| 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.kuali.rice.shareddata.api.postalcode; | |
| 18 | ||
| 19 | /** | |
| 20 | * This is the contract for a Postal Code. A postal code is assigned to different geographic regions | |
| 21 | * in order to give each region an identifier. | |
| 22 | * | |
| 23 | * Examples of postal codes are Zip Codes in the United States and FSALDU in Canada. | |
| 24 | */ | |
| 25 | public interface PostalCodeContract { | |
| 26 | /** | |
| 27 | * This the county code for the PostalCode. This cannot be null or a blank string. | |
| 28 | * | |
| 29 | * @return code | |
| 30 | */ | |
| 31 | String getCode(); | |
| 32 | ||
| 33 | /** | |
| 34 | * This the postal country code for the PostalCode. This cannot be null or a blank string. | |
| 35 | * | |
| 36 | * @return postal country code | |
| 37 | */ | |
| 38 | String getCountryCode(); | |
| 39 | ||
| 40 | /** | |
| 41 | * This the postal state code for the PostalCode. This can be null. | |
| 42 | * | |
| 43 | * @return postal state code | |
| 44 | */ | |
| 45 | String getStateCode(); | |
| 46 | ||
| 47 | /** | |
| 48 | * This the postal state code for the PostalCode. This can be null. | |
| 49 | * | |
| 50 | * @return postal state code | |
| 51 | */ | |
| 52 | String getCityName(); | |
| 53 | ||
| 54 | /** | |
| 55 | * This the county code for the PostalCode. This cannot be null. | |
| 56 | * | |
| 57 | * @return postal state code | |
| 58 | */ | |
| 59 | String getCountyCode(); | |
| 60 | ||
| 61 | /** | |
| 62 | * This the active flag for the PostalCode. | |
| 63 | * | |
| 64 | * @return the active flag of the PostalCode | |
| 65 | */ | |
| 66 | boolean isActive(); | |
| 67 | ||
| 68 | /** | |
| 69 | * This the object version number for PostalCode. | |
| 70 | * | |
| 71 | * @return the version number of the PostalCode | |
| 72 | */ | |
| 73 | Long getVersionNumber(); | |
| 74 | } |