use of org.mule.runtime.internal.dsl.DslConstants.EE_PREFIX in project mule by mulesoft.
the class DefaultXmlDslElementModelConverter method createTransformTextElement.
private Element createTransformTextElement(ComponentConfiguration config) {
String namespaceURI = EE_NAMESPACE;
String eeSchemaLocation = buildSchemaLocation(EE_PREFIX, EE_NAMESPACE);
addNamespaceDeclarationIfNeeded(EE_PREFIX, namespaceURI, eeSchemaLocation);
Element nested = doc.createElementNS(namespaceURI, EE_PREFIX + ":" + config.getIdentifier().getName());
config.getParameters().forEach(nested::setAttribute);
config.getNestedComponents().stream().filter(inner -> inner.getValue().isPresent()).forEach(inner -> nested.appendChild(doc.createCDATASection(inner.getValue().get())));
return nested;
}
Aggregations