ca.infoway.messagebuilder.domainvalue.basic
Class Country

Package class diagram package Country
java.lang.Object
  extended by ca.infoway.messagebuilder.domainvalue.basic.Country
All Implemented Interfaces:
Code, Country, Serializable

Deprecated.

@Deprecated
public class Country
extends Object
implements Country, Serializable

The cerx AD.Basic states that the country is a SC data type (meaning that the code is optional but the text description is always manadatory) Code can not model this type. In the future we may want to handle this type? For now we are just using the text description directly and ignoring any iso3166-alpha2 code that may be present.

Author:
Intelliware Development
See Also:
Serialized Form

Field Summary
static Country CANADA
          Deprecated. Canada.
static Country USA
          Deprecated. United States.
 
Constructor Summary
Country(String code, String name)
          Deprecated. Constructs a Country using the supplied parameters.
 
Method Summary
 String getCode()
          Deprecated. Returns the country code.
 String getCodeSystem()
          Deprecated. Returns the codesystem as an empty string.
 String getCodeValue()
          Deprecated. Returns the code value.
 String getName()
          Deprecated. Returns the name.
static Country resolveCountry(String countryCode)
          Deprecated. Returns the country applicable for the country code.
static String resolveCountryCode(String countryName)
          Deprecated. Returns the country applicable for the country name (Canada only!).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANADA

public static final Country CANADA
Deprecated. 

Canada.


USA

public static final Country USA
Deprecated. 

United States.

Constructor Detail

Country

public Country(String code,
               String name)
Deprecated. 

Constructs a Country using the supplied parameters.

Parameters:
code - a code
name - a name
Method Detail

getCode

public String getCode()
Deprecated. 

Returns the country code.

Returns:
the code

getName

public String getName()
Deprecated. 

Returns the name.

Returns:
the name

getCodeValue

public String getCodeValue()
Deprecated. 

Returns the code value.

Specified by:
getCodeValue in interface Code
Returns:
the code value

getCodeSystem

public String getCodeSystem()
Deprecated. 

Returns the codesystem as an empty string.

Specified by:
getCodeSystem in interface Code
Returns:
the codesystem as an empty string

resolveCountry

public static Country resolveCountry(String countryCode)
Deprecated. 

Returns the country applicable for the country code.

Parameters:
countryCode - the country code
Returns:
the country applicable for the country code

resolveCountryCode

public static String resolveCountryCode(String countryName)
Deprecated. 

Returns the country applicable for the country name (Canada only!).

Parameters:
countryName - the country name
Returns:
the country applicable for the country name (Canada only!)


Copyright © 2013. All Rights Reserved.