org.opengts.db
Class USState

java.lang.Object
  extended by org.opengts.db.USState

public class USState
extends java.lang.Object


Constructor Summary
USState()
           
 
Method Summary
static java.lang.String getStateAbbreviation(java.lang.String code)
          Gets the state abbreviation for the specified state code
static java.lang.String getStateCode(java.lang.String name)
          Gets the state code for the specified state name
static java.lang.String getStateName(java.lang.String code)
          Gets the state name for the specified state code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USState

public USState()
Method Detail

getStateName

public static java.lang.String getStateName(java.lang.String code)
Gets the state name for the specified state code

Parameters:
code - The state code
Returns:
The state name, or an empty String if the state code was not found

getStateCode

public static java.lang.String getStateCode(java.lang.String name)
Gets the state code for the specified state name

Parameters:
name - The state name
Returns:
The state code, or an empty String if the state name was not found

getStateAbbreviation

public static java.lang.String getStateAbbreviation(java.lang.String code)
Gets the state abbreviation for the specified state code

Parameters:
code - The state code
Returns:
The state abbreviation, or an empty String if the state code was not found