Coverage Report - org.kuali.rice.shareddata.api.country.CountryContract
 
Classes in this File Line Coverage Branch Coverage Complexity
CountryContract
N/A
N/A
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.country;
 18  
 
 19  
 /**
 20  
  * Contract for a Country. Country is a basic abstraction over a Country, encapsulating its name, country code,
 21  
  * postal code, and if its restricted or not
 22  
  */
 23  
 public interface CountryContract {
 24  
 
 25  
     /**
 26  
      * An abbreviated String representing the unique identifying code for a given country.  This code correlates
 27  
      * directly to the alpha-2 country codes from the ISO-3166-1-alpha-2 standard.
 28  
      * <p>This property is required to exist.</p>
 29  
      *
 30  
      * @return The country code for this Country.
 31  
      */
 32  
     String getCode();
 33  
 
 34  
     /**
 35  
      * An alternative country code to represent a country. This code correlats directly to the alpha-3 codes
 36  
      * from the ISO_3166-1-alpha-3 standard.
 37  
      * <p>This property is optional</p>
 38  
      *
 39  
      * @return The alternate country code if it exists.  null is returned if an alternate code does not exist.
 40  
      */
 41  
     String getAlternateCode();
 42  
 
 43  
     /**
 44  
      * A full, familiar, name of a country.
 45  
      * <p>This property is optional</p>
 46  
      *
 47  
      * @return The name of a country if it exists.  null is returned if a full name does not exist.
 48  
      */
 49  
     String getName();
 50  
 
 51  
     /**
 52  
      * Value representing whether or not a country is active or not.
 53  
      *
 54  
      * @return if a country is active
 55  
      *
 56  
      * @see org.kuali.rice.kns.bo.Inactivateable
 57  
      */
 58  
     boolean isActive();
 59  
 
 60  
     /**
 61  
      * Value representing whether a country is restricted.
 62  
      * <p>The meaning of restricted for a country varies depending upon the implementer - for instance if a country
 63  
      * may not be used in the address of a Vendor.</p>
 64  
      *
 65  
      * <p>The default value of this property is false.</p>
 66  
      * @return if a country is restricted.
 67  
      */
 68  
     boolean isRestricted();
 69  
 
 70  
     /**
 71  
      * This the object version number for Country.
 72  
      *
 73  
      * @return the version number of the Country
 74  
      */
 75  
     Long getVersionNumber();
 76  
 }