public final class SchemeResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
UNKNOWN_CONTENT |
Modifier and Type | Method and Description |
---|---|
static SchemeResult |
create(boolean isDocument,
java.lang.Object value,
java.lang.String valueAsString,
java.lang.Throwable error) |
static SchemeResult |
createError(java.lang.Throwable e) |
static SchemeResult |
createSucceeded(boolean isDocument,
java.lang.Object value,
java.lang.String valueAsString) |
static SchemeResult |
createSucceededByNull() |
static SchemeResult |
createSucceededByObject(java.lang.Object resultValue) |
static SchemeResult |
createSucceededByString(java.lang.String resultValueAsString) |
static java.lang.String |
endWithLineFeed(java.lang.String s) |
static java.lang.String |
formatResult(java.lang.String s) |
java.lang.Throwable |
getError() |
java.lang.Object |
getValue() |
java.lang.String |
getValueAsString() |
boolean |
isDocument() |
boolean |
isEmpty() |
boolean |
isSucceeded() |
SchemeResult |
throwIfError() |
SchemeResult |
warnIfError() |
public static SchemeResult create(boolean isDocument, java.lang.Object value, java.lang.String valueAsString, java.lang.Throwable error)
public static SchemeResult createSucceeded(boolean isDocument, java.lang.Object value, java.lang.String valueAsString)
public static SchemeResult createSucceededByNull()
public static SchemeResult createSucceededByString(java.lang.String resultValueAsString)
public static SchemeResult createSucceededByObject(java.lang.Object resultValue)
public static SchemeResult createError(java.lang.Throwable e)
public boolean isDocument()
public final boolean isSucceeded()
public final boolean isEmpty()
public java.lang.Object getValue()
public java.lang.String getValueAsString()
public java.lang.Throwable getError()
public SchemeResult throwIfError()
public SchemeResult warnIfError()
public static java.lang.String formatResult(java.lang.String s)
public static java.lang.String endWithLineFeed(java.lang.String s)