org.kuali.rice.shareddata.api.country
Interface CountryContract

All Superinterfaces:
Inactivatable, Versioned
All Known Implementing Classes:
Country, Country.Builder

public interface CountryContract
extends Versioned, Inactivatable

Contract for a Country. Country is a basic abstraction over a Country, encapsulating its name, country code, postal code, and if its restricted or not


Method Summary
 String getAlternateCode()
          An alternative country code to represent a country.
 String getCode()
          An abbreviated String representing the unique identifying code for a given country.
 String getName()
          A full, familiar, name of a country.
 boolean isRestricted()
          Value representing whether a country is restricted.
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.active.Inactivatable
isActive
 

Method Detail

getCode

String getCode()
An abbreviated String representing the unique identifying code for a given country. This code correlates directly to the alpha-2 country codes from the ISO-3166-1-alpha-2 standard.

This property is required to exist.

Returns:
The country code for this Country.

getAlternateCode

String getAlternateCode()
An alternative country code to represent a country. This code correlats directly to the alpha-3 codes from the ISO_3166-1-alpha-3 standard.

This property is optional

Returns:
The alternate country code if it exists. null is returned if an alternate code does not exist.

getName

String getName()
A full, familiar, name of a country.

This property is optional

Returns:
The name of a country if it exists. null is returned if a full name does not exist.

isRestricted

boolean isRestricted()
Value representing whether a country is restricted.

The meaning of restricted for a country varies depending upon the implementer - for instance if a country may not be used in the address of a Vendor.

The default value of this property is false.

Returns:
if a country is restricted.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.