public static final class AstXmlParser.Builder extends Object
AstXmlParser instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AstXmlParser |
build()
Creates a new
ArtifactAst according to the state set to this builder. |
AstXmlParser.Builder |
withArtifactType(ArtifactType artifactType)
Set the
ArtifactType of the target ArtifactAst |
AstXmlParser.Builder |
withExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
Add an extension model for the parser.
|
AstXmlParser.Builder |
withExtensionModels(Collection<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels)
Add an extension model for the parser.
|
AstXmlParser.Builder |
withLegacyFailStrategy() |
AstXmlParser.Builder |
withParentArtifact(ArtifactAst parentArtifact)
Set the
ArtifactAst from the parent artifact (i.e.: the parent domain) |
AstXmlParser.Builder |
withPropertyResolver(org.mule.runtime.dsl.api.xml.parser.ParsingPropertyResolver propertyResolver)
Sets the
propertyResolver to be used to resolve property placeholders (${...}) found in the config. |
AstXmlParser.Builder |
withSchemaValidationsDisabled()
Disables schema validations during the parse process.
|
public AstXmlParser.Builder withExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
The target parser must contain the extension models for every namespace that is used in the XML config for the
ArtifactAsts to be created correctly.
extensionModel - the extension model to add to the target parserpublic AstXmlParser.Builder withExtensionModels(Collection<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels)
The target parser must contain the extension models for every namespace that is used in the XML config for the
ArtifactAsts to be created correctly.
extensionModels - the extension model to add to the target parserpublic AstXmlParser.Builder withArtifactType(ArtifactType artifactType)
ArtifactType of the target ArtifactAstartifactType - the type pf the target artifact.public AstXmlParser.Builder withParentArtifact(ArtifactAst parentArtifact)
ArtifactAst from the parent artifact (i.e.: the parent domain)parentArtifact - the ArtifactAst that is the parent of the artifacts generated with this parser.public AstXmlParser.Builder withSchemaValidationsDisabled()
This will speed up the parsing process, but may provide an invalid ArtifactAst for invalid XMLs.
public AstXmlParser.Builder withPropertyResolver(org.mule.runtime.dsl.api.xml.parser.ParsingPropertyResolver propertyResolver)
propertyResolver to be used to resolve property placeholders (${...}) found in the config.propertyResolver - the property resolver to be used by the created ArtifactAsts.public AstXmlParser.Builder withLegacyFailStrategy()
public AstXmlParser build()
ArtifactAst according to the state set to this builder.ArtifactAst.Copyright © 2022 MuleSoft, Inc.. All rights reserved.