jxl.biff
Class CountryCode

java.lang.Object
  extended byjxl.biff.CountryCode

public class CountryCode
extends java.lang.Object

Enumeration type for the excel country codes


Field Summary
static CountryCode BELGIUM
           
static CountryCode CANADA
           
static CountryCode CHINA
           
static CountryCode DENMARK
           
static CountryCode FRANCE
           
static CountryCode GERMANY
           
static CountryCode GREECE
           
static CountryCode INDIA
           
static CountryCode ITALY
           
static CountryCode NETHERLANDS
           
static CountryCode NORWAY
           
static CountryCode PHILIPPINES
           
static CountryCode SPAIN
           
static CountryCode SWEDEN
           
static CountryCode SWITZERLAND
           
static CountryCode UK
           
static CountryCode UNKNOWN
           
static CountryCode USA
           
 
Method Summary
static CountryCode createArbitraryCode(int i)
          Creates an arbitrary country code with the specified value.
 java.lang.String getCode()
          Accessor for the string
static CountryCode getCountryCode(java.lang.String s)
          Gets the country code for the given two character mnemonic string
 int getValue()
          Accessor for the excel value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USA

public static final CountryCode USA

CANADA

public static final CountryCode CANADA

GREECE

public static final CountryCode GREECE

NETHERLANDS

public static final CountryCode NETHERLANDS

BELGIUM

public static final CountryCode BELGIUM

FRANCE

public static final CountryCode FRANCE

SPAIN

public static final CountryCode SPAIN

ITALY

public static final CountryCode ITALY

SWITZERLAND

public static final CountryCode SWITZERLAND

UK

public static final CountryCode UK

DENMARK

public static final CountryCode DENMARK

SWEDEN

public static final CountryCode SWEDEN

NORWAY

public static final CountryCode NORWAY

GERMANY

public static final CountryCode GERMANY

PHILIPPINES

public static final CountryCode PHILIPPINES

CHINA

public static final CountryCode CHINA

INDIA

public static final CountryCode INDIA

UNKNOWN

public static final CountryCode UNKNOWN
Method Detail

getValue

public int getValue()
Accessor for the excel value

Returns:
the excel value

getCode

public java.lang.String getCode()
Accessor for the string

Returns:
the two character iso 3166 string

getCountryCode

public static CountryCode getCountryCode(java.lang.String s)
Gets the country code for the given two character mnemonic string


createArbitraryCode

public static CountryCode createArbitraryCode(int 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