org.apache.sling.scripting.sightly.use.UseProvider
interface return Sling
org.apache.sling.scripting.sightly.use.ProviderOutcome
objects.@Deprecated
public final class ProviderOutcome
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ProviderOutcome |
failure()
Deprecated.
Create a failed outcome
|
java.lang.Object |
getResult()
Deprecated.
Get the result in this outcome
|
boolean |
isFailure()
Deprecated.
Check whether the outcome is a failure
|
boolean |
isSuccess()
Deprecated.
Check if the outcome has been successful
|
static ProviderOutcome |
notNullOrFailure(java.lang.Object obj)
Deprecated.
If the given obj is not null return a successful outcome, with the given result.
|
static ProviderOutcome |
success(java.lang.Object result)
Deprecated.
Create a successful outcome
|
public static ProviderOutcome success(java.lang.Object result)
result - the resultpublic static ProviderOutcome failure()
public static ProviderOutcome notNullOrFailure(java.lang.Object obj)
obj - the resultpublic boolean isSuccess()
public boolean isFailure()
public java.lang.Object getResult()
java.lang.UnsupportedOperationException - if the outcome is a failure"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"