Enumeration type for the excel country codes
| Field Summary |
|---|
| public static final CountryCode | USA | |
| public static final CountryCode | CANADA | |
| public static final CountryCode | GREECE | |
| public static final CountryCode | NETHERLANDS | |
| public static final CountryCode | BELGIUM | |
| public static final CountryCode | FRANCE | |
| public static final CountryCode | SPAIN | |
| public static final CountryCode | ITALY | |
| public static final CountryCode | SWITZERLAND | |
| public static final CountryCode | UK | |
| public static final CountryCode | DENMARK | |
| public static final CountryCode | SWEDEN | |
| public static final CountryCode | NORWAY | |
| public static final CountryCode | GERMANY | |
| public static final CountryCode | PHILIPPINES | |
| public static final CountryCode | CHINA | |
| public static final CountryCode | INDIA | |
| public static final CountryCode | UNKNOWN | |
| Method from jxl.biff.CountryCode Detail: |
public static CountryCode createArbitraryCode(int i) {
return new CountryCode(i);
}
Creates an arbitrary country code with the specified value. Used
when copying sheets, and the country code isn't initialized as part
of the static data below |
public String getCode() {
return code;
}
|
public static CountryCode getCountryCode(String s) {
if (s == null || s.length() != 2)
{
logger.warn("Please specify two character ISO 3166 country code");
return USA;
}
CountryCode code = UNKNOWN;
for (int i = 0 ; i < codes.length && code == UNKNOWN ; i++)
{
if (codes[i].code.equals(s))
{
code = codes[i];
}
}
return code;
}
Gets the country code for the given two character mnemonic string |
public int getValue() {
return value;
}
Accessor for the excel value |