ca.infoway.messagebuilder.domainvalue.basic
Class State

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

Deprecated.

@Deprecated
public class State
extends Object
implements State, 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.

See Also:
Serialized Form

Field Summary
static State ALBERTA
          Deprecated.  
static State BRITISH_COLUMBIA
          Deprecated.  
static Map<String,State> CANADIAN_PROVINCES
          Deprecated.  
static State MANITOBA
          Deprecated.  
static State NEW_BRUNSWICK
          Deprecated.  
static State NEWFOUNDLAND
          Deprecated.  
static State NORTHWEST_TERRITORIES
          Deprecated.  
static State NOVA_SCOTIA
          Deprecated.  
static State NUNAVUT
          Deprecated.  
static State ONTARIO
          Deprecated.  
static State PRINCE_EDWARD_ISLAND
          Deprecated.  
static State QUEBEC
          Deprecated.  
static State SASKATCHEWAN
          Deprecated.  
static State YUKON
          Deprecated.  
 
Constructor Summary
State(String code, String name)
          Deprecated. Constructs a State with the given code and name.
 
Method Summary
 String getCode()
          Deprecated. Returns the code.
 String getCodeSystem()
          Deprecated. Returns an empty code system.
 String getCodeValue()
          Deprecated. Returns the code value.
 String getName()
          Deprecated. Returns the name.
static State resolveState(String code)
          Deprecated. Returns the State matching the given code.
static Collection<State> values()
          Deprecated. Returns the collection of values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALBERTA

public static final State ALBERTA
Deprecated. 

BRITISH_COLUMBIA

public static final State BRITISH_COLUMBIA
Deprecated. 

MANITOBA

public static final State MANITOBA
Deprecated. 

NEW_BRUNSWICK

public static final State NEW_BRUNSWICK
Deprecated. 

NEWFOUNDLAND

public static final State NEWFOUNDLAND
Deprecated. 

NORTHWEST_TERRITORIES

public static final State NORTHWEST_TERRITORIES
Deprecated. 

NOVA_SCOTIA

public static final State NOVA_SCOTIA
Deprecated. 

NUNAVUT

public static final State NUNAVUT
Deprecated. 

PRINCE_EDWARD_ISLAND

public static final State PRINCE_EDWARD_ISLAND
Deprecated. 

ONTARIO

public static final State ONTARIO
Deprecated. 

QUEBEC

public static final State QUEBEC
Deprecated. 

SASKATCHEWAN

public static final State SASKATCHEWAN
Deprecated. 

YUKON

public static final State YUKON
Deprecated. 

CANADIAN_PROVINCES

public static final Map<String,State> CANADIAN_PROVINCES
Deprecated. 
Constructor Detail

State

public State(String code,
             String name)
Deprecated. 

Constructs a State with the given code and name.

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

getCode

public String getCode()
Deprecated. 

Returns the 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

values

public static Collection<State> values()
Deprecated. 

Returns the collection of values.

Returns:
the collection of values

resolveState

public static State resolveState(String code)
Deprecated. 

Returns the State matching the given code.

Parameters:
code - the code to lookup
Returns:
the matching State

getCodeSystem

public String getCodeSystem()
Deprecated. 

Returns an empty code system.

Specified by:
getCodeSystem in interface Code
Returns:
an empty code system.


Copyright © 2013. All Rights Reserved.