use of org.mule.runtime.module.extension.internal.config.dsl.parameter.TypedInlineParameterGroupParser in project mule by mulesoft.
the class ExtensionDefinitionParser method parseInlineParameterGroup.
protected void parseInlineParameterGroup(ParameterGroupModel group) throws ConfigurationException {
ParameterGroupDescriptor descriptor = group.getModelProperty(ParameterGroupModelProperty.class).map(ParameterGroupModelProperty::getDescriptor).orElse(null);
DslElementSyntax dslElementSyntax = dslResolver.resolveInline(group);
if (descriptor != null) {
addParameter(getChildKey(getContainerName(descriptor.getContainer())), new DefaultObjectParsingDelegate().parse("", null, dslElementSyntax));
new TypedInlineParameterGroupParser(baseDefinitionBuilder, group, descriptor, getContextClassLoader(), dslElementSyntax, dslResolver, parsingContext).parse().forEach(this::addDefinition);
} else {
AttributeDefinition.Builder builder = fromChildConfiguration(Map.class);
if (dslElementSyntax.isWrapped()) {
builder.withWrapperIdentifier(dslElementSyntax.getElementName());
} else {
builder.withIdentifier(dslElementSyntax.getElementName());
}
addParameter(getChildKey(group.getName()), builder);
new AnonymousInlineParameterGroupParser(baseDefinitionBuilder, group, getContextClassLoader(), dslElementSyntax, dslResolver, parsingContext).parse().forEach(this::addDefinition);
}
}
Aggregations