public class DefaultSVRLErrorLevelDeterminator extends Object implements ISVRLErrorLevelDeterminator
ISVRLErrorLevelDeterminator.| Modifier and Type | Field and Description |
|---|---|
static com.helger.commons.error.level.IErrorLevel |
DEFAULT_ERROR_LEVEL |
static com.helger.commons.functional.IFunction<String,com.helger.commons.error.level.IErrorLevel> |
UNKNOWN_ERROR_LEVEL_HANDLER |
| Constructor and Description |
|---|
DefaultSVRLErrorLevelDeterminator()
Default constructor using
UNKNOWN_ERROR_LEVEL_HANDLER. |
DefaultSVRLErrorLevelDeterminator(com.helger.commons.functional.IFunction<String,? extends com.helger.commons.error.level.IErrorLevel> aUnknwownErrorLevelHandler)
Constructor with a custom error level.
|
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.error.level.IErrorLevel |
getDefaultErrorLevelFromString(String sFlag) |
com.helger.commons.error.level.IErrorLevel |
getErrorLevelFromString(String sFlag)
Get the error level associated with a single failed assertion/successful
report.
|
com.helger.commons.functional.IFunction<String,? extends com.helger.commons.error.level.IErrorLevel> |
getUnknwownErrorLevelHandler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorLevelFromFailedAssert, getErrorLevelFromFlag, getErrorLevelFromSuccessfulReportpublic static final com.helger.commons.error.level.IErrorLevel DEFAULT_ERROR_LEVEL
public static final com.helger.commons.functional.IFunction<String,com.helger.commons.error.level.IErrorLevel> UNKNOWN_ERROR_LEVEL_HANDLER
public DefaultSVRLErrorLevelDeterminator()
UNKNOWN_ERROR_LEVEL_HANDLER.public DefaultSVRLErrorLevelDeterminator(@Nonnull com.helger.commons.functional.IFunction<String,? extends com.helger.commons.error.level.IErrorLevel> aUnknwownErrorLevelHandler)
aUnknwownErrorLevelHandler - Custom error level provider. May not be null.@Nonnull public com.helger.commons.functional.IFunction<String,? extends com.helger.commons.error.level.IErrorLevel> getUnknwownErrorLevelHandler()
@Nullable public static com.helger.commons.error.level.IErrorLevel getDefaultErrorLevelFromString(@Nullable String sFlag)
@Nonnull public com.helger.commons.error.level.IErrorLevel getErrorLevelFromString(@Nullable String sFlag)
ISVRLErrorLevelDeterminatorgetErrorLevelFromString in interface ISVRLErrorLevelDeterminatorsFlag - The value to be queried. May be null.null.Copyright © 2014–2019 Philip Helger. All rights reserved.