public class DefaultDslElementModelFactory extends Object implements DslElementModelFactory
DslElementModelFactory| Constructor and Description |
|---|
DefaultDslElementModelFactory(org.mule.runtime.api.dsl.DslResolvingContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<DslElementModel<T>> |
create(org.mule.runtime.ast.api.ComponentAst componentModel)
Resolves the
DslElementModel for the given applicationElement, providing an element with all the
required information for representing this applicationElement element in the DSL and binding it to its
model component or MetadataType. |
<T> Optional<DslElementModel<T>> |
create(org.mule.runtime.dsl.api.component.config.ComponentConfiguration configuration)
Resolves the
DslElementModel for the given applicationElement, providing an element
with all the required information for representing this applicationElement element in the DSL and binding it to its
model component or MetadataType. |
<T> Optional<DslElementModel<T>> |
create(org.mule.runtime.app.declaration.api.ElementDeclaration componentDeclaration)
Resolves the
DslElementModel for the given ElementDeclaration, providing an element with all the required
information for representing this elementDeclaration element in the DSL and binding it to its model component or MetadataType. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultpublic DefaultDslElementModelFactory(org.mule.runtime.api.dsl.DslResolvingContext context)
public <T> Optional<DslElementModel<T>> create(org.mule.runtime.app.declaration.api.ElementDeclaration componentDeclaration)
DslElementModel for the given ElementDeclaration, providing an element with all the required
information for representing this elementDeclaration element in the DSL and binding it to its model component or MetadataType. This resolution can only be performed from DSL top-level-elements, which have
global representations in the ExtensionModel, so this method will return an Optional.empty() result if the
given applicationElement does not identify either a ConfigurationModel, OperationModel,
SourceModelcreate in interface DslElementModelFactoryT - the expected model type of the elementcomponentDeclaration - the ElementDeclaration for which its DslElementModel representation is required.DslElementModel representation of the ElementDeclaration if one is possible to be built based on
the extensions provided as resolution context, or Optional.empty() if no
DslElementModel could be created for the given applicationElement with the current extensions
context.public <T> Optional<DslElementModel<T>> create(org.mule.runtime.dsl.api.component.config.ComponentConfiguration configuration)
DslElementModelFactoryDslElementModel for the given applicationElement, providing an element
with all the required information for representing this applicationElement element in the DSL and binding it to its
model component or MetadataType. This resolution can only be performed from DSL
top-level-elements, which have global representations in the ExtensionModel, so this method will return an
Optional.empty() result if the given applicationElement does not identify either a ConfigurationModel,
OperationModel, SourceModel or an ObjectType than can be expressed as an explicit top level element.create in interface DslElementModelFactoryT - the expected model type of the elementconfiguration - the ComponentConfiguration for which its DslElementModel representation is
required.DslElementModel representation of the ComponentConfiguration if one is possible to be built based
on the extensions provided as resolution context, or Optional.empty() if no
DslElementModel could be created for the given applicationElement with the current extensions
context.public <T> Optional<DslElementModel<T>> create(org.mule.runtime.ast.api.ComponentAst componentModel)
DslElementModelFactoryDslElementModel for the given applicationElement, providing an element with all the
required information for representing this applicationElement element in the DSL and binding it to its
model component or MetadataType. This resolution can only be performed from DSL
top-level-elements, which have global representations in the ExtensionModel, so this method will return an
Optional.empty() result if the given applicationElement does not identify either a ConfigurationModel,
OperationModel, SourceModel or an ObjectType than can be expressed as an explicit top level element.create in interface DslElementModelFactoryT - the expected model type of the elementcomponentModel - the ComponentAst for which its DslElementModel representation is required.DslElementModel representation of the ComponentAst if one is possible to be built based on the
extensions provided as resolution context, or Optional.empty() if no
DslElementModel could be created for the given applicationElement with the current extensions
context.Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.