Class ISO3166_3CountryCode
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
-
- com.nimbusds.openid.connect.sdk.assurance.claims.ISO3166_3CountryCode
-
- All Implemented Interfaces:
Serializable,Comparable<Identifier>,net.minidev.json.JSONAware
@Immutable public final class ISO3166_3CountryCode extends CountryCode
ISO 3166-3 country code for former countries and territories.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ISO3166_3CountryCodeAIDJFrench Afars and Issasstatic ISO3166_3CountryCodeANHHNetherlands Antillesstatic ISO3166_3CountryCodeBQAQBritish Antarctic Territorystatic ISO3166_3CountryCodeBUMMBurmastatic ISO3166_3CountryCodeBYAAByelorussian SSRstatic ISO3166_3CountryCodeCSHHCzechoslovakiastatic ISO3166_3CountryCodeCSXXSerbia and Montenegrostatic ISO3166_3CountryCodeCTKICanton and Enderbury Islandsstatic ISO3166_3CountryCodeDDDEGerman Democratic Republicstatic ISO3166_3CountryCodeDYBJDahomeystatic ISO3166_3CountryCodeFQHHFrench Southern and Antarctic Territoriesstatic ISO3166_3CountryCodeFXFRFrance, Metropolitanstatic ISO3166_3CountryCodeGEHHGilbert Islandsstatic ISO3166_3CountryCodeHVBFUpper Voltastatic ISO3166_3CountryCodeJTUMJohnston Islandstatic ISO3166_3CountryCodeMIUMMidway Islandsstatic ISO3166_3CountryCodeNHVUNew Hebridesstatic ISO3166_3CountryCodeNQAQDronning Maud Landstatic ISO3166_3CountryCodeNTHHNeutral Zonestatic ISO3166_3CountryCodePCHHPacific Islands (Trust Territory)static ISO3166_3CountryCodePUUMUnited States Miscellaneous Pacific Islandsstatic ISO3166_3CountryCodePZPAPanama Canal Zonestatic ISO3166_3CountryCodeRHZWSouthern Rhodesiastatic ISO3166_3CountryCodeSKINSikkimstatic ISO3166_3CountryCodeSUHHUSSRstatic ISO3166_3CountryCodeTPTLEast Timorstatic ISO3166_3CountryCodeVDVNViet-Nam, Democratic Republic ofstatic ISO3166_3CountryCodeWKUMWake Islandstatic ISO3166_3CountryCodeYDYEYemen, Democraticstatic ISO3166_3CountryCodeYUCSYugoslaviastatic ISO3166_3CountryCodeZRCDZaire-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description ISO3166_3CountryCode(String value)Creates a new ISO 3166-3 country code.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetCountryName()Returns the country name if available in theiso3166_3-codes.propertiesresource.StringgetFirstComponentString()Returns the first component (the first two letters) representing the former country code.ISO3166_1Alpha2CountryCodegetFormerCode()Returns the former country code (the first component).ISO3166_1Alpha2CountryCodegetNewCode()Returns the new country code (the second component), unless the former country is divided and there is no single successor country (indicated by an "HH" or "XX" code).StringgetSecondComponentString()Returns the second component (the last two letters).static ISO3166_3CountryCodeparse(String s)Parses an ISO 3166-3 country code.-
Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
length, toISO3166_1Alpha2CountryCode, toISO3166_1Alpha3CountryCode, toISO3166_3CountryCode
-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Field Detail
-
BQAQ
public static final ISO3166_3CountryCode BQAQ
British Antarctic Territory
-
BUMM
public static final ISO3166_3CountryCode BUMM
Burma
-
BYAA
public static final ISO3166_3CountryCode BYAA
Byelorussian SSR
-
CTKI
public static final ISO3166_3CountryCode CTKI
Canton and Enderbury Islands
-
CSHH
public static final ISO3166_3CountryCode CSHH
Czechoslovakia
-
DYBJ
public static final ISO3166_3CountryCode DYBJ
Dahomey
-
NQAQ
public static final ISO3166_3CountryCode NQAQ
Dronning Maud Land
-
TPTL
public static final ISO3166_3CountryCode TPTL
East Timor
-
FXFR
public static final ISO3166_3CountryCode FXFR
France, Metropolitan
-
AIDJ
public static final ISO3166_3CountryCode AIDJ
French Afars and Issas
-
FQHH
public static final ISO3166_3CountryCode FQHH
French Southern and Antarctic Territories
-
DDDE
public static final ISO3166_3CountryCode DDDE
German Democratic Republic
-
GEHH
public static final ISO3166_3CountryCode GEHH
Gilbert Islands
-
JTUM
public static final ISO3166_3CountryCode JTUM
Johnston Island
-
MIUM
public static final ISO3166_3CountryCode MIUM
Midway Islands
-
ANHH
public static final ISO3166_3CountryCode ANHH
Netherlands Antilles
-
NTHH
public static final ISO3166_3CountryCode NTHH
Neutral Zone
-
NHVU
public static final ISO3166_3CountryCode NHVU
New Hebrides
-
PCHH
public static final ISO3166_3CountryCode PCHH
Pacific Islands (Trust Territory)
-
PZPA
public static final ISO3166_3CountryCode PZPA
Panama Canal Zone
-
CSXX
public static final ISO3166_3CountryCode CSXX
Serbia and Montenegro
-
SKIN
public static final ISO3166_3CountryCode SKIN
Sikkim
-
RHZW
public static final ISO3166_3CountryCode RHZW
Southern Rhodesia
-
PUUM
public static final ISO3166_3CountryCode PUUM
United States Miscellaneous Pacific Islands
-
HVBF
public static final ISO3166_3CountryCode HVBF
Upper Volta
-
SUHH
public static final ISO3166_3CountryCode SUHH
USSR
-
VDVN
public static final ISO3166_3CountryCode VDVN
Viet-Nam, Democratic Republic of
-
WKUM
public static final ISO3166_3CountryCode WKUM
Wake Island
-
YDYE
public static final ISO3166_3CountryCode YDYE
Yemen, Democratic
-
YUCS
public static final ISO3166_3CountryCode YUCS
Yugoslavia
-
ZRCD
public static final ISO3166_3CountryCode ZRCD
Zaire
-
-
Constructor Detail
-
ISO3166_3CountryCode
public ISO3166_3CountryCode(String value)
Creates a new ISO 3166-3 country code. Normalises the code to upper case.- Parameters:
value- The country code value, must be four-letter.
-
-
Method Detail
-
getFormerCode
public ISO3166_1Alpha2CountryCode getFormerCode()
Returns the former country code (the first component).- Returns:
- The former country code as an ISO 3166-1 alpha-2 (two-letter) country code.
-
getNewCode
public ISO3166_1Alpha2CountryCode getNewCode()
Returns the new country code (the second component), unless the former country is divided and there is no single successor country (indicated by an "HH" or "XX" code).- Returns:
- The new country code as an ISO 3166-1 alpha-2 (two-letter)
country code,
nullif the former country is divided. and there is no single successor country.
-
getFirstComponentString
public String getFirstComponentString()
Returns the first component (the first two letters) representing the former country code.- Returns:
- The first component as a string.
-
getSecondComponentString
public String getSecondComponentString()
Returns the second component (the last two letters).- Returns:
- The second component as a string.
-
getCountryName
public String getCountryName()
Returns the country name if available in theiso3166_3-codes.propertiesresource.- Returns:
- The country name,
nullif not available.
-
equals
public boolean equals(Object object)
- Specified by:
equalsin classCountryCode
-
parse
public static ISO3166_3CountryCode parse(String s) throws ParseException
Parses an ISO 3166-3 country code.- Parameters:
s- The string to parse. Must not benull.- Returns:
- The ISO 3166-3 country code.
- Throws:
ParseException- If parsing failed.
-
-