public static SleeState fromString(String state) throws NullPointerException, IllegalArgumentException {
        if (state == null) throw new NullPointerException("state is null");
        if (state.equalsIgnoreCase(STOPPED_STRING)) return STOPPED;
        if (state.equalsIgnoreCase(STARTING_STRING)) return STARTING;
        if (state.equalsIgnoreCase(RUNNING_STRING)) return RUNNING;
        if (state.equalsIgnoreCase(STOPPING_STRING)) return STOPPING;
        throw new IllegalArgumentException("Invalid state: " + state);
    }
public static SleeState fromString ( String state ) throws NullPointerException , IllegalArgumentException { if ( state == null ) throw new NullPointerException ( "state is null" ) ; if ( state . equalsIgnoreCase ( STOPPED_STRING ) ) return STOPPED ; if ( state . equalsIgnoreCase ( STARTING_STRING ) ) return STARTING ; if ( state . equalsIgnoreCase ( RUNNING_STRING ) ) return RUNNING ; if ( state . equalsIgnoreCase ( STOPPING_STRING ) ) return STOPPING ; throw new IllegalArgumentException ( "Invalid state: " + state ) ; }
Get a <code>SleeState</code> object from a string value.
@param state the state as a string, for example as returned by the {@link #toString()}
method (case insensitive).
@return a <code>SleeState</code> object corresponding to <code>state</code>.
@throws NullPointerException if <code>state</code> is <code>null</code>.
@throws IllegalArgumentException if <code>state</code> is not a valid SLEE
state string.
@since SLEE 1.1