public class JavaSourceModelParser extends Object implements SourceModelParser
SourceModelParser.SourceCallbackModelParser| Modifier and Type | Field and Description |
|---|---|
protected List<org.mule.runtime.api.meta.model.ModelProperty> |
additionalModelProperties |
protected boolean |
connected |
protected ExtensionElement |
extensionElement |
protected org.mule.runtime.extension.api.loader.ExtensionLoadingContext |
loadingContext |
protected OutputModelParser |
outputAttributesType |
protected OutputModelParser |
outputType |
protected boolean |
supportsStreaming |
protected boolean |
transactional |
| Constructor and Description |
|---|
JavaSourceModelParser(ExtensionElement extensionElement,
SourceElement sourceElement,
org.mule.runtime.extension.api.loader.ExtensionLoadingContext loadingContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
emitsResponse() |
boolean |
equals(Object o) |
List<org.mule.runtime.api.meta.model.ModelProperty> |
getAdditionalModelProperties()
Returns a list with all the
model properties to be applied at the extension level which are
specifically linked to the type of syntax used to define the extension. |
OutputModelParser |
getAttributesOutputType() |
Optional<org.mule.runtime.extension.api.property.BackPressureStrategyModelProperty> |
getBackPressureStrategyModelProperty() |
protected String |
getComponentTypeName()
Returns a meaningful name which describes the type of component being parsed.
|
org.mule.runtime.api.meta.model.ComponentVisibility |
getComponentVisibility() |
Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> |
getDeprecationModel() |
String |
getDescription() |
Optional<org.mule.runtime.api.meta.model.display.DisplayModel> |
getDisplayModel() |
Stream<org.mule.runtime.api.meta.model.notification.NotificationModel> |
getEmittedNotificationsStream(Function<String,Optional<org.mule.runtime.api.meta.model.notification.NotificationModel>> notificationMapper)
Gets a
Stream with the parsed emitted NotificationModels. |
Optional<ExceptionHandlerModelProperty> |
getExceptionHandlerModelProperty() |
Optional<MediaTypeModelProperty> |
getMediaTypeModelProperty() |
String |
getName() |
Optional<SourceModelParser.SourceCallbackModelParser> |
getOnBackPressureCallbackParser() |
Optional<SourceModelParser.SourceCallbackModelParser> |
getOnErrorCallbackParser() |
Optional<SourceModelParser.SourceCallbackModelParser> |
getOnSuccessCallbackParser() |
Optional<SourceModelParser.SourceCallbackModelParser> |
getOnTerminateCallbackParser() |
OutputModelParser |
getOutputType() |
List<ParameterGroupModelParser> |
getParameterGroupModelParsers()
Returns a list with a
ParameterGroupModelParser per each parameter group defined in the source. |
Set<String> |
getSemanticTerms() |
Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> |
getSinceMuleVersionModelProperty() |
org.mule.runtime.extension.api.property.SourceClusterSupportModelProperty |
getSourceClusterSupportModelProperty() |
Optional<SdkSourceFactoryModelProperty> |
getSourceFactoryModelProperty()
Returns the
SdkSourceFactoryModelProperty which will be used to create the SdkSourceFactory that brings the
operation to life. |
Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
getStereotype(StereotypeModelFactory factory) |
boolean |
hasConfig() |
int |
hashCode() |
boolean |
isConnected() |
boolean |
isIgnored() |
boolean |
isTransactional() |
protected void |
parseComponentByteStreaming(WithAnnotations element)
Parses the
component's byte streaming attributes and extract's the appropriate values |
protected void |
parseComponentConnectivity(WithParameters component)
Parses the
component's connectivity attributes and extract's the appropriate values |
boolean |
supportsStreaming() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttributesOutputType, getOutputType, isConnected, isTransactional, supportsStreaminggetAdditionalModelPropertiesprotected OutputModelParser outputType
protected OutputModelParser outputAttributesType
protected boolean supportsStreaming
protected boolean connected
protected boolean transactional
protected final ExtensionElement extensionElement
protected final org.mule.runtime.extension.api.loader.ExtensionLoadingContext loadingContext
protected final List<org.mule.runtime.api.meta.model.ModelProperty> additionalModelProperties
public JavaSourceModelParser(ExtensionElement extensionElement, SourceElement sourceElement, org.mule.runtime.extension.api.loader.ExtensionLoadingContext loadingContext)
public String getName()
getName in interface SourceModelParserpublic String getDescription()
getDescription in interface SourceModelParserpublic boolean emitsResponse()
emitsResponse in interface SourceModelParserpublic Optional<SdkSourceFactoryModelProperty> getSourceFactoryModelProperty()
SourceModelParserSdkSourceFactoryModelProperty which will be used to create the SdkSourceFactory that brings the
operation to life.getSourceFactoryModelProperty in interface SourceModelParserSdkSourceFactoryModelPropertypublic List<ParameterGroupModelParser> getParameterGroupModelParsers()
SourceModelParserParameterGroupModelParser per each parameter group defined in the source. Each group is listed
in the same order as defined in the syntax.getParameterGroupModelParsers in interface SourceModelParserParameterGroupModelParserpublic Optional<SourceModelParser.SourceCallbackModelParser> getOnSuccessCallbackParser()
getOnSuccessCallbackParser in interface SourceModelParserSourceModelParser.SourceCallbackModelParser for the success callback, if one was definedpublic Optional<SourceModelParser.SourceCallbackModelParser> getOnErrorCallbackParser()
getOnErrorCallbackParser in interface SourceModelParserSourceModelParser.SourceCallbackModelParser for the error callback, if one was definedpublic Optional<SourceModelParser.SourceCallbackModelParser> getOnTerminateCallbackParser()
getOnTerminateCallbackParser in interface SourceModelParserSourceModelParser.SourceCallbackModelParser for the terminate callback, if one was definedpublic Optional<SourceModelParser.SourceCallbackModelParser> getOnBackPressureCallbackParser()
getOnBackPressureCallbackParser in interface SourceModelParserSourceModelParser.SourceCallbackModelParser for the back pressure callback, if one was definedpublic boolean isIgnored()
isIgnored in interface SourceModelParserExtensionModelpublic Optional<MediaTypeModelProperty> getMediaTypeModelProperty()
getMediaTypeModelProperty in interface SourceModelParserMediaTypeModelProperty describing the source's output mimeType, if one was definedpublic Optional<ExceptionHandlerModelProperty> getExceptionHandlerModelProperty()
getExceptionHandlerModelProperty in interface SourceModelParserOptional ExceptionHandlerModelProperty is an exception handler was defined for this source.public boolean hasConfig()
hasConfig in interface SourceModelParserpublic Set<String> getSemanticTerms()
getSemanticTerms in interface SemanticTermsParserSet with the model's semantic termspublic Stream<org.mule.runtime.api.meta.model.notification.NotificationModel> getEmittedNotificationsStream(Function<String,Optional<org.mule.runtime.api.meta.model.notification.NotificationModel>> notificationMapper)
NotificationEmitterParserStream with the parsed emitted NotificationModels.getEmittedNotificationsStream in interface NotificationEmitterParsernotificationMapper - If the parser can only obtain a String from the DSL, it should apply this function to
convert them to the corresponding NotificationModel. If the parser can get the
corresponding NotificationModel by itself, this function shouldn't be applied.Stream with the parsed emitted NotificationModels.protected String getComponentTypeName()
public Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel> getDeprecationModel()
getDeprecationModel in interface SourceModelParserDeprecationModel if one was definedpublic Optional<org.mule.runtime.api.meta.model.display.DisplayModel> getDisplayModel()
getDisplayModel in interface SourceModelParserDisplayModelpublic Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getStereotype(StereotypeModelFactory factory)
getStereotype in interface StereotypeModelParserpublic Optional<org.mule.runtime.extension.api.property.BackPressureStrategyModelProperty> getBackPressureStrategyModelProperty()
getBackPressureStrategyModelProperty in interface SourceModelParserpublic org.mule.runtime.extension.api.property.SourceClusterSupportModelProperty getSourceClusterSupportModelProperty()
getSourceClusterSupportModelProperty in interface SourceModelParserpublic Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> getSinceMuleVersionModelProperty()
getSinceMuleVersionModelProperty in interface SourceModelParserpublic org.mule.runtime.api.meta.model.ComponentVisibility getComponentVisibility()
getComponentVisibility in interface ComponentVisibilityParserComponentVisibility.protected void parseComponentConnectivity(WithParameters component)
component's connectivity attributes and extract's the appropriate valuescomponent - the connected componentprotected void parseComponentByteStreaming(WithAnnotations element)
component's byte streaming attributes and extract's the appropriate valueselement - the connected componentpublic OutputModelParser getOutputType()
public OutputModelParser getAttributesOutputType()
public boolean supportsStreaming()
public boolean isConnected()
public boolean isTransactional()
public final List<org.mule.runtime.api.meta.model.ModelProperty> getAdditionalModelProperties()
model properties to be applied at the extension level which are
specifically linked to the type of syntax used to define the extension.getAdditionalModelProperties in interface AdditionalPropertiesModelParserModelProperty instances.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.