api/jar/src/main/java/javax/slee/AddressPlan.java
public static AddressPlan fromString(String plan) throws NullPointerException, IllegalArgumentException {
        if (plan == null) throw new NullPointerException("plan is null");
        if (plan.equalsIgnoreCase(NOT_PRESENT_STRING)) return NOT_PRESENT;
        if (plan.equalsIgnoreCase(UNDEFINED_STRING)) return UNDEFINED;
        if (plan.equalsIgnoreCase(IP_STRING)) return IP;
        if (plan.equalsIgnoreCase(MULTICAST_STRING)) return MULTICAST;
        if (plan.equalsIgnoreCase(UNICAST_STRING)) return UNICAST;
        if (plan.equalsIgnoreCase(E164_STRING)) return E164;
        if (plan.equalsIgnoreCase(AESA_STRING)) return AESA;
        if (plan.equalsIgnoreCase(URI_STRING)) return URI;
        if (plan.equalsIgnoreCase(NSAP_STRING)) return NSAP;
        if (plan.equalsIgnoreCase(SMTP_STRING)) return SMTP;
        if (plan.equalsIgnoreCase(X400_STRING)) return X400;
        if (plan.equalsIgnoreCase(SIP_STRING)) return SIP;
        if (plan.equalsIgnoreCase(E164_MOBILE_STRING)) return E164_MOBILE;
        if (plan.equalsIgnoreCase(H323_STRING)) return H323;
        if (plan.equalsIgnoreCase(GT_STRING)) return GT;
        if (plan.equalsIgnoreCase(SSN_STRING)) return SSN;
        if (plan.equalsIgnoreCase(SLEE_PROFILE_TABLE_STRING)) return SLEE_PROFILE_TABLE;
        if (plan.equalsIgnoreCase(SLEE_PROFILE_STRING)) return SLEE_PROFILE;
        throw new IllegalArgumentException("Invalid address plan: " + plan);
    }
public static AddressPlan fromString(String plan) throws NullPointerException, IllegalArgumentException {
        if (plan == null) throw new NullPointerException("plan is null");
        if (plan.equalsIgnoreCase(NOT_PRESENT_STRING)) return NOT_PRESENT;
        if (plan.equalsIgnoreCase(UNDEFINED_STRING)) return UNDEFINED;
        if (plan.equalsIgnoreCase(IP_STRING)) return IP;
        if (plan.equalsIgnoreCase(MULTICAST_STRING)) return MULTICAST;
        if (plan.equalsIgnoreCase(UNICAST_STRING)) return UNICAST;
        if (plan.equalsIgnoreCase(E164_STRING)) return E164;
        if (plan.equalsIgnoreCase(AESA_STRING)) return AESA;
        if (plan.equalsIgnoreCase(URI_STRING)) return URI;
        if (plan.equalsIgnoreCase(NSAP_STRING)) return NSAP;
        if (plan.equalsIgnoreCase(SMTP_STRING)) return SMTP;
        if (plan.equalsIgnoreCase(X400_STRING)) return X400;
        if (plan.equalsIgnoreCase(SIP_STRING)) return SIP;
        if (plan.equalsIgnoreCase(E164_MOBILE_STRING)) return E164_MOBILE;
        if (plan.equalsIgnoreCase(H323_STRING)) return H323;
        if (plan.equalsIgnoreCase(GT_STRING)) return GT;
        if (plan.equalsIgnoreCase(SSN_STRING)) return SSN;
        if (plan.equalsIgnoreCase(SLEE_PROFILE_TABLE_STRING)) return SLEE_PROFILE_TABLE;
        if (plan.equalsIgnoreCase(SLEE_PROFILE_STRING)) return SLEE_PROFILE;
        throw new IllegalArgumentException("Invalid address plan: " + plan);
    }
public static AddressPlan fromString ( String plan ) throws NullPointerException , IllegalArgumentException { if ( plan == null ) throw new NullPointerException ( "plan is null" ) ; if ( plan . equalsIgnoreCase ( NOT_PRESENT_STRING ) ) return NOT_PRESENT ; if ( plan . equalsIgnoreCase ( UNDEFINED_STRING ) ) return UNDEFINED ; if ( plan . equalsIgnoreCase ( IP_STRING ) ) return IP ; if ( plan . equalsIgnoreCase ( MULTICAST_STRING ) ) return MULTICAST ; if ( plan . equalsIgnoreCase ( UNICAST_STRING ) ) return UNICAST ; if ( plan . equalsIgnoreCase ( E164_STRING ) ) return E164 ; if ( plan . equalsIgnoreCase ( AESA_STRING ) ) return AESA ; if ( plan . equalsIgnoreCase ( URI_STRING ) ) return URI ; if ( plan . equalsIgnoreCase ( NSAP_STRING ) ) return NSAP ; if ( plan . equalsIgnoreCase ( SMTP_STRING ) ) return SMTP ; if ( plan . equalsIgnoreCase ( X400_STRING ) ) return X400 ; if ( plan . equalsIgnoreCase ( SIP_STRING ) ) return SIP ; if ( plan . equalsIgnoreCase ( E164_MOBILE_STRING ) ) return E164_MOBILE ; if ( plan . equalsIgnoreCase ( H323_STRING ) ) return H323 ; if ( plan . equalsIgnoreCase ( GT_STRING ) ) return GT ; if ( plan . equalsIgnoreCase ( SSN_STRING ) ) return SSN ; if ( plan . equalsIgnoreCase ( SLEE_PROFILE_TABLE_STRING ) ) return SLEE_PROFILE_TABLE ; if ( plan . equalsIgnoreCase ( SLEE_PROFILE_STRING ) ) return SLEE_PROFILE ; throw new IllegalArgumentException ( "Invalid address plan: " + plan ) ; }
Get an <code>AddressPlan</code> object from a string value.
@param plan the address plan as a string, for example as returned by the {@link #toString()}
method (case insensitive).
@return an <code>AddressPlan</code> object corresponding to <code>plan</code>.
@throws NullPointerException if <code>plan</code> is <code>null</code>.
@throws IllegalArgumentException if <code>plan</code> is not a valid
address plan value.
@since SLEE 1.1
Get an <code > AddressPlan< / code > object from a string value .