FileDocCategorySizeDatePackage
AddressInfo.javaAPI DocphoneME MR2 API (J2ME)3436Wed May 02 18:00:40 BST 2007javax.microedition.location

AddressInfo

public class AddressInfo extends Object
This class is defined by the JSR-179 specification Location API for J2ME for J2ME™.

Fields Summary
public static final int
EXTENSION
public static final int
STREET
public static final int
POSTAL_CODE
public static final int
CITY
public static final int
COUNTY
public static final int
STATE
public static final int
COUNTRY
public static final int
COUNTRY_CODE
public static final int
DISTRICT
public static final int
BUILDING_NAME
public static final int
BUILDING_FLOOR
public static final int
BUILDING_ROOM
public static final int
BUILDING_ZONE
public static final int
CROSSING1
public static final int
CROSSING2
public static final int
URL
public static final int
PHONE_NUMBER
static final int
DATA_SIZE
private String[]
data
Constructors Summary
public AddressInfo()


    // JAVADOC COMMENT ELIDED
      
    
AddressInfo(String[] data)

        this.data = data;
    
Methods Summary
private voidcheckField(int field)

        if (field < 1 || field > data.length) {
            throw new 
		IllegalArgumentException("Unsuported field attribute value: "
					 + field);
        }
    
java.lang.String[]getData()

        return data;
    
public java.lang.StringgetField(int field)

        checkField(field);
        return data[field - 1];
    
public voidsetField(int field, java.lang.String value)

        checkField(field);
        data[field - 1] = value;