api/jar/src/main/java/javax/slee/facilities/TraceLevel.java
public static TraceLevel fromString(String level) throws NullPointerException, IllegalArgumentException {
        if (level == null) throw new NullPointerException("level is null");
        if (level.equalsIgnoreCase(OFF_STRING)) return OFF;
        if (level.equalsIgnoreCase(SEVERE_STRING)) return SEVERE;
        if (level.equalsIgnoreCase(WARNING_STRING)) return WARNING;
        if (level.equalsIgnoreCase(INFO_STRING)) return INFO;
        if (level.equalsIgnoreCase(CONFIG_STRING)) return CONFIG;
        if (level.equalsIgnoreCase(FINE_STRING)) return FINE;
        if (level.equalsIgnoreCase(FINER_STRING)) return FINER;
        if (level.equalsIgnoreCase(FINEST_STRING)) return FINEST;
        throw new IllegalArgumentException("Invalid level: " + level);
    }
public static TraceLevel fromString(String level) throws NullPointerException, IllegalArgumentException {
        if (level == null) throw new NullPointerException("level is null");
        if (level.equalsIgnoreCase(OFF_STRING)) return OFF;
        if (level.equalsIgnoreCase(SEVERE_STRING)) return SEVERE;
        if (level.equalsIgnoreCase(WARNING_STRING)) return WARNING;
        if (level.equalsIgnoreCase(INFO_STRING)) return INFO;
        if (level.equalsIgnoreCase(CONFIG_STRING)) return CONFIG;
        if (level.equalsIgnoreCase(FINE_STRING)) return FINE;
        if (level.equalsIgnoreCase(FINER_STRING)) return FINER;
        if (level.equalsIgnoreCase(FINEST_STRING)) return FINEST;
        throw new IllegalArgumentException("Invalid level: " + level);
    }
public static TraceLevel fromString ( String level ) throws NullPointerException , IllegalArgumentException { if ( level == null ) throw new NullPointerException ( "level is null" ) ; if ( level . equalsIgnoreCase ( OFF_STRING ) ) return OFF ; if ( level . equalsIgnoreCase ( SEVERE_STRING ) ) return SEVERE ; if ( level . equalsIgnoreCase ( WARNING_STRING ) ) return WARNING ; if ( level . equalsIgnoreCase ( INFO_STRING ) ) return INFO ; if ( level . equalsIgnoreCase ( CONFIG_STRING ) ) return CONFIG ; if ( level . equalsIgnoreCase ( FINE_STRING ) ) return FINE ; if ( level . equalsIgnoreCase ( FINER_STRING ) ) return FINER ; if ( level . equalsIgnoreCase ( FINEST_STRING ) ) return FINEST ; throw new IllegalArgumentException ( "Invalid level: " + level ) ; }
Get a <code>TraceLevel</code> object from a string value.
@param level the level as a string, for example as returned by the {@link #toString()}
method (case insensitive).
@return a <code>TraceLevel</code> object corresponding to <code>level</code>.
@throws NullPointerException if <code>level</code> is <code>null</code>.
@throws IllegalArgumentException if <code>level</code> is not a valid trace
level string.
Get a <code > TraceLevel< / code > object from a string value .