Package org.mule.runtime.ast.api.builder
Interface NamespaceDefinitionBuilder
- All Known Implementing Classes:
DefaultNamespaceDefinitionBuilder
@NoImplement
public interface NamespaceDefinitionBuilder
Provides a way of creating
NamespaceDefinition instances, adding and configuring its components.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static NamespaceDefinitionBuilderbuilder()withNamespace(String namespace) Sets the namespace name of theNamespaceDefinitionbeing builtwithPrefix(String prefix) Sets the prefix of theNamespaceDefinitionbeing builtwithSchemaLocation(String schemaLocation, String location) Sets one schema location to theNamespaceDefinitionbeing builtwithUnresolvedNamespace(String namespace, String schemaLocation) Sets one namespace that was not resolved
-
Method Details
-
builder
-
withNamespace
Sets the namespace name of theNamespaceDefinitionbeing built- Parameters:
namespace-- Returns:
- this builder
-
withPrefix
Sets the prefix of theNamespaceDefinitionbeing built- Parameters:
prefix-- Returns:
- this builder
-
withSchemaLocation
Sets one schema location to theNamespaceDefinitionbeing built- Parameters:
schemaLocation-location-- Returns:
- this builder
-
withUnresolvedNamespace
Sets one namespace that was not resolved- Parameters:
namespace-schemaLocation-- Returns:
- this builder
-
build
NamespaceDefinition build()- Returns:
- the built
NamespaceDefinition
-