From 6d987e0dd18ef830484641166a816661f4b16074 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 27 Mar 2016 08:02:14 -0700 Subject: Adding the update_individual API --- .../java/com/p4square/ccbapi/model/Country.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/main/java/com/p4square/ccbapi/model/Country.java') diff --git a/src/main/java/com/p4square/ccbapi/model/Country.java b/src/main/java/com/p4square/ccbapi/model/Country.java index e6936a5..ac9e9ec 100644 --- a/src/main/java/com/p4square/ccbapi/model/Country.java +++ b/src/main/java/com/p4square/ccbapi/model/Country.java @@ -15,6 +15,30 @@ public class Country { @XmlValue private String name; + /** + * Default Country constructor. + */ + public Country() { + + } + + /** + * This package-private Country constructor is used to create the + * constants in the {@link Countries} class. + * + * Usually the country name cannot be set except when binding to + * responses from CCB. This constructor is an exception so that the + * constants in {@link Countries} can be provide with + * known values used by CCB. + * + * @param code The two letter country code. + * @param name The country name as typically presented by CCB. + */ + Country(final String code, final String name) { + setCountryCode(code); + this.name = name; + } + /** * @return The two letter country code. */ -- cgit v1.2.3