org.apache.sling.scripting.sightly.use.UseProvider
interface return Sling
org.apache.sling.scripting.sightly.use.ProviderOutcome
objects.@Deprecated public final class ProviderOutcome extends Object
Modifier and Type | Method and Description |
---|---|
static ProviderOutcome |
failure()
Deprecated.
Create a failed outcome
|
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(Object obj)
Deprecated.
If the given obj is not null return a successful outcome, with the given result.
|
static ProviderOutcome |
success(Object result)
Deprecated.
Create a successful outcome
|
public static ProviderOutcome success(Object result)
result
- the resultpublic static ProviderOutcome failure()
public static ProviderOutcome notNullOrFailure(Object obj)
obj
- the resultpublic boolean isSuccess()
public boolean isFailure()
public Object getResult()
UnsupportedOperationException
- if the outcome is a failure"Copyright © 2010 - 2016 Adobe Systems Incorporated. All Rights Reserved"