api/jar/src/main/java/javax/slee/facilities/TimerPreserveMissed.java
public static TimerPreserveMissed fromString(String option) throws NullPointerException, IllegalArgumentException {
        if (option == null) throw new NullPointerException("option is null");
        if (option.equalsIgnoreCase(NONE_STRING)) return NONE;
        if (option.equalsIgnoreCase(ALL_STRING)) return ALL;
        if (option.equalsIgnoreCase(LAST_STRING)) return LAST;
        throw new IllegalArgumentException("Invalid preserve-missed value: " + option);
    }
public static TimerPreserveMissed fromString(String option) throws NullPointerException, IllegalArgumentException {
        if (option == null) throw new NullPointerException("option is null");
        if (option.equalsIgnoreCase(NONE_STRING)) return NONE;
        if (option.equalsIgnoreCase(ALL_STRING)) return ALL;
        if (option.equalsIgnoreCase(LAST_STRING)) return LAST;
        throw new IllegalArgumentException("Invalid preserve-missed value: " + option);
    }
public static TimerPreserveMissed fromString ( String option ) throws NullPointerException , IllegalArgumentException { if ( option == null ) throw new NullPointerException ( "option is null" ) ; if ( option . equalsIgnoreCase ( NONE_STRING ) ) return NONE ; if ( option . equalsIgnoreCase ( ALL_STRING ) ) return ALL ; if ( option . equalsIgnoreCase ( LAST_STRING ) ) return LAST ; throw new IllegalArgumentException ( "Invalid preserve-missed value: " + option ) ; }
Get a <code>TimerPreserveMissed</code> object from a string value.
@param option the preserve-missed option as a string, for example as returned
by the {@link #toString()} method (case insensitive).
@return a <code>TimerPreserveMissed</code> object corresponding to <code>option</code>.
@throws NullPointerException if <code>option</code> is <code>null</code>.
@throws IllegalArgumentException if <code>option</code> is not a valid
preserve-missed option value.
@since SLEE 1.1
Get a <code > TimerPreserveMissed< / code > object from a string value .