api/jar/src/main/java/javax/slee/AddressPresentation.java
public static AddressPresentation fromString(String value) throws NullPointerException, IllegalArgumentException {
        if (value == null) throw new NullPointerException("value is null");
        if (value.equalsIgnoreCase(UNDEFINED_STRING)) return UNDEFINED;
        if (value.equalsIgnoreCase(ALLOWED_STRING)) return ALLOWED;
        if (value.equalsIgnoreCase(RESTRICTED_STRING)) return RESTRICTED;
        if (value.equalsIgnoreCase(ADDRESS_NOT_AVAILABLE_STRING)) return ADDRESS_NOT_AVAILABLE;
        throw new IllegalArgumentException("Invalid value: " + value);
    }
public static AddressPresentation fromString(String value) throws NullPointerException, IllegalArgumentException {
        if (value == null) throw new NullPointerException("value is null");
        if (value.equalsIgnoreCase(UNDEFINED_STRING)) return UNDEFINED;
        if (value.equalsIgnoreCase(ALLOWED_STRING)) return ALLOWED;
        if (value.equalsIgnoreCase(RESTRICTED_STRING)) return RESTRICTED;
        if (value.equalsIgnoreCase(ADDRESS_NOT_AVAILABLE_STRING)) return ADDRESS_NOT_AVAILABLE;
        throw new IllegalArgumentException("Invalid value: " + value);
    }
Get an <code>AddressPresentation</code> object from a string value.
@param value the address presentation as a string, for example as returned by the
{@link #toString()} method (case insensitive).
@return an <code>AddressPresentation</code> object corresponding to <code>value</code>.
@throws NullPointerException if <code>value</code> is <code>null</code>.
@throws IllegalArgumentException if <code>value</code> is not a valid
address presentation value.
@since SLEE 1.1