api/jar/src/main/java/javax/slee/AddressPlan.java
public static AddressPlan fromInt(int plan) throws IllegalArgumentException {
        switch (plan) {
            case ADDRESS_PLAN_NOT_PRESENT: return NOT_PRESENT;
            case ADDRESS_PLAN_UNDEFINED: return UNDEFINED;
            case ADDRESS_PLAN_IP: return IP;
            case ADDRESS_PLAN_MULTICAST: return MULTICAST;
            case ADDRESS_PLAN_UNICAST: return UNICAST;
            case ADDRESS_PLAN_E164: return E164;
            case ADDRESS_PLAN_AESA: return AESA;
            case ADDRESS_PLAN_URI: return URI;
            case ADDRESS_PLAN_NSAP: return NSAP;
            case ADDRESS_PLAN_SMTP: return SMTP;
            case ADDRESS_PLAN_X400: return X400;
            case ADDRESS_PLAN_SIP: return SIP;
            case ADDRESS_PLAN_E164_MOBILE: return E164_MOBILE;
            case ADDRESS_PLAN_H323: return H323;
            case ADDRESS_PLAN_GT: return GT;
            case ADDRESS_PLAN_SSN: return SSN;
            case ADDRESS_PLAN_SLEE_PROFILE_TABLE: return SLEE_PROFILE_TABLE;
            case ADDRESS_PLAN_SLEE_PROFILE: return SLEE_PROFILE;
            default: throw new IllegalArgumentException("Invalid address plan: " + plan);
        }
    }
public static AddressPlan fromInt(int plan) throws IllegalArgumentException {
        switch (plan) {
            case ADDRESS_PLAN_NOT_PRESENT: return NOT_PRESENT;
            case ADDRESS_PLAN_UNDEFINED: return UNDEFINED;
            case ADDRESS_PLAN_IP: return IP;
            case ADDRESS_PLAN_MULTICAST: return MULTICAST;
            case ADDRESS_PLAN_UNICAST: return UNICAST;
            case ADDRESS_PLAN_E164: return E164;
            case ADDRESS_PLAN_AESA: return AESA;
            case ADDRESS_PLAN_URI: return URI;
            case ADDRESS_PLAN_NSAP: return NSAP;
            case ADDRESS_PLAN_SMTP: return SMTP;
            case ADDRESS_PLAN_X400: return X400;
            case ADDRESS_PLAN_SIP: return SIP;
            case ADDRESS_PLAN_E164_MOBILE: return E164_MOBILE;
            case ADDRESS_PLAN_H323: return H323;
            case ADDRESS_PLAN_GT: return GT;
            case ADDRESS_PLAN_SSN: return SSN;
            case ADDRESS_PLAN_SLEE_PROFILE_TABLE: return SLEE_PROFILE_TABLE;
            case ADDRESS_PLAN_SLEE_PROFILE: return SLEE_PROFILE;
            default: throw new IllegalArgumentException("Invalid address plan: " + plan);
        }
    }
Get an <code>AddressPlan</code> object from an integer value.
@param plan the address plan as an integer.
@return an <code>AddressPlan</code> object corresponding to <code>plan</code>.
@throws IllegalArgumentException if <code>plan</code> is not a valid
address plan value.