public class SourceDeclaration extends ExecutableComponentDeclaration<SourceDeclaration>
SourceModel. It contains raw, unvalidated
data which is used to declare the structure of a SourceModel| Modifier and Type | Method and Description |
|---|---|
List<ParameterDeclaration> |
getAllParameters()
Returns all the parameter declarations declared on all groups, including
the ones declared on the success and error callbacks
|
Optional<SourceCallbackDeclaration> |
getErrorCallback() |
Optional<SourceCallbackDeclaration> |
getSuccessCallback() |
Optional<SourceCallbackDeclaration> |
getTerminateCallback() |
boolean |
hasResponse() |
void |
setErrorCallback(SourceCallbackDeclaration errorCallback)
Sets the error
SourceCallbackDeclaration |
void |
setHasResponse(boolean hasResponse) |
void |
setSuccessCallback(SourceCallbackDeclaration successCallback)
Sets the success
SourceCallbackDeclaration |
void |
setTerminateCallback(SourceCallbackDeclaration terminateCallback)
Sets the terminate
SourceCallbackDeclaration |
getOutput, getOutputAttributes, isRequiresConnection, isSupportsStreaming, isTransactional, setOutput, setOutputAttributes, setRequiresConnection, setSupportsStreaming, setTransactionaladdErrorModel, addNestedComponent, getErrorModels, getNestedComponentsgetStereotype, withStereotypegetParameterGroup, getParameterGroupsgetNameaddModelProperty, getDescription, getDisplayModel, getModelProperties, getModelProperty, setDescription, setDisplayModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStereotype, withStereotypepublic List<ParameterDeclaration> getAllParameters()
getAllParameters in interface WithParametersDeclarationgetAllParameters in class ParameterizedDeclaration<SourceDeclaration>public boolean hasResponse()
public void setHasResponse(boolean hasResponse)
hasResponse - Whether the declared source emits a responsepublic Optional<SourceCallbackDeclaration> getSuccessCallback()
SourceCallbackDeclaration if provided.public void setSuccessCallback(SourceCallbackDeclaration successCallback)
SourceCallbackDeclarationsuccessCallback - a callback declaration or nullpublic Optional<SourceCallbackDeclaration> getErrorCallback()
SourceCallbackDeclaration if provided.public void setErrorCallback(SourceCallbackDeclaration errorCallback)
SourceCallbackDeclarationerrorCallback - a callback declaration or nullpublic Optional<SourceCallbackDeclaration> getTerminateCallback()
SourceCallbackDeclaration if provided.public void setTerminateCallback(SourceCallbackDeclaration terminateCallback)
SourceCallbackDeclarationterminateCallback - a callback declaration or nullCopyright © 2017 MuleSoft, Inc.. All rights reserved.