Class DslElementSyntaxBuilder
java.lang.Object
org.mule.runtime.extension.api.dsl.syntax.DslElementSyntaxBuilder
Implementation of the builder design pattern to create instances of
DslElementSyntax- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionasWrappedElement(boolean isWrapped) Declares whether or notthisDslElementSyntaxis a wrapped element.build()containing(String name, DslElementSyntax child) static DslElementSyntaxBuildercreate()requiresConfig(boolean requiresConfig) Declares whether or notthisDslElementSyntaxrequires a parameter pointing to a configsupportsAttributeDeclaration(boolean supportsAttribute) Declares whether or notthisDslElementSyntaxsupports to be declared as an attribute in the context for which it was created.supportsChildDeclaration(boolean supportsChild) Declares whether or notthisDslElementSyntaxsupports to be declared as child element in the context for which it was created.supportsTopLevelDeclaration(boolean supportsTop) Declares whether or notthisDslElementSyntaxsupports to be declared as top level element in the context for which it was created.withAttributeName(String attributeName) Adds anamethat describes how this element will be represented as an attribute.withElementName(String elementName) Adds anameto the element being declaredwithGeneric(org.mule.metadata.api.model.MetadataType type, DslElementSyntax child) Adds achildElementdeclaration tothisDslElementSyntaxthat represents a generic type ofthiselement.withNamespace(String prefix, String namespace) Adds aprefixto the element being declared
-
Method Details
-
create
- Returns:
- a new instance of
DslElementSyntaxBuilder
-
withAttributeName
Adds anamethat describes how this element will be represented as an attribute.- Returns:
thisbuilder instance enriched with theattributeName
-
withElementName
Adds anameto the element being declared- Returns:
thisbuilder instance enriched with theelementName
-
withNamespace
Adds aprefixto the element being declared- Returns:
thisbuilder instance enriched with theprefix
-
asWrappedElement
Declares whether or notthisDslElementSyntaxis a wrapped element.- Returns:
thisbuilder instance enriched with theisWrapped
-
supportsAttributeDeclaration
Declares whether or notthisDslElementSyntaxsupports to be declared as an attribute in the context for which it was created.- Returns:
thisbuilder instance enriched withsupportsAttributeDeclaration
-
supportsChildDeclaration
Declares whether or notthisDslElementSyntaxsupports to be declared as child element in the context for which it was created.- Returns:
thisbuilder instance enriched withsupportsChildDeclaration
-
supportsTopLevelDeclaration
Declares whether or notthisDslElementSyntaxsupports to be declared as top level element in the context for which it was created.- Returns:
thisbuilder instance enriched withsupportsTopLevelDeclaration
-
requiresConfig
Declares whether or notthisDslElementSyntaxrequires a parameter pointing to a config- Returns:
thisbuilder instance enriched withsupportsTopLevelDeclaration
-
withGeneric
public DslElementSyntaxBuilder withGeneric(org.mule.metadata.api.model.MetadataType type, DslElementSyntax child) Adds achildElementdeclaration tothisDslElementSyntaxthat represents a generic type ofthiselement.- Returns:
thisbuilder instance enriched with thetypedchildElement
-
containing
- Returns:
thisbuilder instance enriched with thenamedchildElement
-
build
- Returns:
- a new instance of
DslElementSyntax
-