|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.domainvalue.basic.State
@Deprecated public class State
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.
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 |
---|
public static final State ALBERTA
public static final State BRITISH_COLUMBIA
public static final State MANITOBA
public static final State NEW_BRUNSWICK
public static final State NEWFOUNDLAND
public static final State NORTHWEST_TERRITORIES
public static final State NOVA_SCOTIA
public static final State NUNAVUT
public static final State PRINCE_EDWARD_ISLAND
public static final State ONTARIO
public static final State QUEBEC
public static final State SASKATCHEWAN
public static final State YUKON
public static final Map<String,State> CANADIAN_PROVINCES
Constructor Detail |
---|
public State(String code, String name)
Constructs a State with the given code and name.
code
- a codename
- a nameMethod Detail |
---|
public String getCode()
Returns the code.
public String getName()
Returns the name.
public String getCodeValue()
Returns the code value.
getCodeValue
in interface Code
public static Collection<State> values()
Returns the collection of values.
public static State resolveState(String code)
Returns the State matching the given code.
code
- the code to lookup
public String getCodeSystem()
Returns an empty code system.
getCodeSystem
in interface Code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |