public class JavaOperationModelParser extends Object implements OperationModelParser
OperationModelParser for Java based syntax| 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 |
|---|
JavaOperationModelParser(JavaExtensionModelParser extensionModelParser,
ExtensionElement extensionElement,
OperationContainerElement operationContainer,
OperationElement operationElement,
org.mule.runtime.extension.api.loader.ExtensionLoadingContext loadingContext) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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. |
List<ErrorModelParser> |
getErrorModelParsers() |
Optional<ExceptionHandlerModelProperty> |
getExceptionHandlerModelProperty() |
Optional<org.mule.runtime.api.meta.model.operation.ExecutionType> |
getExecutionType() |
Optional<CompletableComponentExecutorModelProperty> |
getExecutorModelProperty()
Returns the
CompletableComponentExecutorModelProperty which will be used to create the
CompletableComponentExecutor that brings the operation to life. |
Optional<MediaTypeModelProperty> |
getMediaTypeModelProperty() |
String |
getName() |
Optional<NestedChainModelParser> |
getNestedChainParser()
Returns an
NestedChainModelParser if the operation defined one. |
List<NestedRouteModelParser> |
getNestedRouteParsers()
Returns a list with a
NestedRouteModelParser per each route defined in the operation. |
OutputModelParser |
getOutputType() |
List<ParameterGroupModelParser> |
getParameterGroupModelParsers()
Returns a list with a
ParameterGroupModelParser per each parameter group defined in the operation. |
Set<String> |
getSemanticTerms() |
Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> |
getSinceMuleVersionModelProperty() |
Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
getStereotype(StereotypeModelFactory factory) |
boolean |
hasConfig() |
int |
hashCode() |
boolean |
isAutoPaging()
Returns whether this operation supports auto paging.
|
boolean |
isBlocking() |
boolean |
isConnected() |
boolean |
isIgnored() |
boolean |
isRouter() |
boolean |
isScope() |
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 JavaOperationModelParser(JavaExtensionModelParser extensionModelParser, ExtensionElement extensionElement, OperationContainerElement operationContainer, OperationElement operationElement, org.mule.runtime.extension.api.loader.ExtensionLoadingContext loadingContext)
public String getName()
getName in interface OperationModelParserpublic String getDescription()
getDescription in interface OperationModelParserpublic List<ParameterGroupModelParser> getParameterGroupModelParsers()
OperationModelParserParameterGroupModelParser per each parameter group defined in the operation. Each group is
listed in the same order as defined in the syntax.getParameterGroupModelParsers in interface OperationModelParserParameterGroupModelParserpublic List<NestedRouteModelParser> getNestedRouteParsers()
OperationModelParserNestedRouteModelParser per each route defined in the operation.
The Routes are listed in the same order as defined in the syntax.
This list will only be populated when OperationModelParser.isRouter() returns true. The list will be empty otherwise.
getNestedRouteParsers in interface OperationModelParserNestedRouteModelParserpublic Optional<NestedChainModelParser> getNestedChainParser()
OperationModelParserNestedChainModelParser if the operation defined one.
The value will be present only if OperationModelParser.isScope() returns true
getNestedChainParser in interface OperationModelParserOptional NestedChainModelParserpublic Optional<CompletableComponentExecutorModelProperty> getExecutorModelProperty()
OperationModelParserCompletableComponentExecutorModelProperty which will be used to create the
CompletableComponentExecutor that brings the operation to life.getExecutorModelProperty in interface OperationModelParserCompletableComponentExecutorModelPropertypublic boolean isIgnored()
isIgnored in interface OperationModelParserExtensionModelpublic boolean isScope()
isScope in interface OperationModelParserpublic boolean isRouter()
isRouter in interface OperationModelParserpublic boolean isAutoPaging()
OperationModelParser
If this method returns true, so will OperationModelParser.supportsStreaming()
isAutoPaging in interface OperationModelParserpublic Optional<org.mule.runtime.api.meta.model.operation.ExecutionType> getExecutionType()
getExecutionType in interface OperationModelParserExecutionType if one was defined. If no value present, Mule will infer one.public Optional<MediaTypeModelProperty> getMediaTypeModelProperty()
getMediaTypeModelProperty in interface OperationModelParserMediaTypeModelProperty describing the operation's output mimeType, if one was definedpublic Optional<ExceptionHandlerModelProperty> getExceptionHandlerModelProperty()
getExceptionHandlerModelProperty in interface OperationModelParserOptional ExceptionHandlerModelProperty is an exception handler was defined for this operation.public Optional<org.mule.runtime.extension.api.property.SinceMuleVersionModelProperty> getSinceMuleVersionModelProperty()
getSinceMuleVersionModelProperty in interface OperationModelParserpublic boolean isBlocking()
isBlocking in interface OperationModelParserpublic boolean hasConfig()
hasConfig in interface OperationModelParserpublic List<ErrorModelParser> getErrorModelParsers()
getErrorModelParsers in interface OperationModelParserErrorModelParser per each error that the operation can raise.public 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 OperationModelParserDeprecationModel if one was definedpublic Optional<org.mule.runtime.api.meta.model.display.DisplayModel> getDisplayModel()
getDisplayModel in interface OperationModelParserDisplayModelpublic org.mule.runtime.api.meta.model.ComponentVisibility getComponentVisibility()
getComponentVisibility in interface ComponentVisibilityParserComponentVisibility.public Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getStereotype(StereotypeModelFactory factory)
getStereotype in interface StereotypeModelParserprotected 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.