org.ahmadsoft.postal
Class PostalCodeConstants

java.lang.Object
  extended by org.ahmadsoft.postal.PostalCodeConstants

public class PostalCodeConstants
extends java.lang.Object

A collection of constants used by the Postal Code Service library. Groups of constants use the commonly used GroupName_MemberName syntax.

Author:
Amin Ahmad

Field Summary
static short CITY_ACCEPTABLE
          Indicates a PostalCodeEntry that holds an city and state combination defined as acceptable for a given postal code by the US Postal Service.
static short CITY_ACTUAL
          Indicates a PostalCodeEntry that holds the actual city and state for a given postal code.
static short CITY_UNACCEPTABLE
          Indicates a PostalCodeEntry that holds an city and state combination defined as unacceptable for a given postal code by the US Postal Service.
static short CITY_UNKNOWN
          Indicates a PostalCodeEntry that holds an unknown city and state combination for the given postal code.
 
Constructor Summary
PostalCodeConstants()
           
 
Method Summary
static java.lang.String toString(int constant)
          Returns a string representation of a given postal code constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CITY_ACTUAL

public static final short CITY_ACTUAL
Indicates a PostalCodeEntry that holds the actual city and state for a given postal code.

See Also:
Constant Field Values

CITY_ACCEPTABLE

public static final short CITY_ACCEPTABLE
Indicates a PostalCodeEntry that holds an city and state combination defined as acceptable for a given postal code by the US Postal Service.

See Also:
Constant Field Values

CITY_UNACCEPTABLE

public static final short CITY_UNACCEPTABLE
Indicates a PostalCodeEntry that holds an city and state combination defined as unacceptable for a given postal code by the US Postal Service.

See Also:
Constant Field Values

CITY_UNKNOWN

public static final short CITY_UNKNOWN
Indicates a PostalCodeEntry that holds an unknown city and state combination for the given postal code.

See Also:
Constant Field Values
Constructor Detail

PostalCodeConstants

public PostalCodeConstants()
Method Detail

toString

public static java.lang.String toString(int constant)
Returns a string representation of a given postal code constant. This method is suitable for debugging purposes, but should not be used to convert codes for an end user.

Parameters:
constant - the constant to represent as a string.
Returns:
a string representation of the specified constant.


Copyright © 2006-2009 Ahmadsoft. All Rights Reserved.