public final class DslElementSyntaxBuilder extends Object
DslElementSyntax| Modifier and Type | Method and Description |
|---|---|
DslElementSyntaxBuilder |
asWrappedElement(boolean isWrapped)
Declares whether or not
this DslElementSyntax is a wrapped element. |
DslElementSyntax |
build() |
DslElementSyntaxBuilder |
containing(String name,
DslElementSyntax child)
|
static DslElementSyntaxBuilder |
create() |
DslElementSyntaxBuilder |
requiresConfig(boolean requiresConfig)
Declares whether or not
this DslElementSyntax requires a parameter
pointing to a config |
DslElementSyntaxBuilder |
supportsAttributeDeclaration(boolean supportsAttribute)
Declares whether or not
this DslElementSyntax supports to be declared as
an attribute in the context for which it was created. |
DslElementSyntaxBuilder |
supportsChildDeclaration(boolean supportsChild)
Declares whether or not
this DslElementSyntax supports to be declared as child element
in the context for which it was created. |
DslElementSyntaxBuilder |
supportsTopLevelDeclaration(boolean supportsTop)
Declares whether or not
this DslElementSyntax supports to be declared as top level element
in the context for which it was created. |
DslElementSyntaxBuilder |
withAttributeName(String attributeName)
Adds a
name that describes how this element will be represented as an attribute. |
DslElementSyntaxBuilder |
withElementName(String elementName)
Adds a
name to the element being declared |
DslElementSyntaxBuilder |
withGeneric(org.mule.metadata.api.model.MetadataType type,
DslElementSyntax child)
Adds a
childElement declaration to this DslElementSyntax that
represents a generic type of this element. |
DslElementSyntaxBuilder |
withNamespace(String prefix,
String namespace)
Adds a
prefix to the element being declared |
public static DslElementSyntaxBuilder create()
DslElementSyntaxBuilderpublic DslElementSyntaxBuilder withAttributeName(String attributeName)
name that describes how this element will be represented as an attribute.this builder instance enriched with the attributeNamepublic DslElementSyntaxBuilder withElementName(String elementName)
name to the element being declaredthis builder instance enriched with the elementNamepublic DslElementSyntaxBuilder withNamespace(String prefix, String namespace)
prefix to the element being declaredthis builder instance enriched with the prefixpublic DslElementSyntaxBuilder asWrappedElement(boolean isWrapped)
this DslElementSyntax is a wrapped element.this builder instance enriched with the isWrappedpublic DslElementSyntaxBuilder supportsAttributeDeclaration(boolean supportsAttribute)
this DslElementSyntax supports to be declared as
an attribute in the context for which it was created.this builder instance enriched with supportsAttributeDeclarationpublic DslElementSyntaxBuilder supportsChildDeclaration(boolean supportsChild)
this DslElementSyntax supports to be declared as child element
in the context for which it was created.this builder instance enriched with supportsChildDeclarationpublic DslElementSyntaxBuilder supportsTopLevelDeclaration(boolean supportsTop)
this DslElementSyntax supports to be declared as top level element
in the context for which it was created.this builder instance enriched with supportsTopLevelDeclarationpublic DslElementSyntaxBuilder requiresConfig(boolean requiresConfig)
this DslElementSyntax requires a parameter
pointing to a configthis builder instance enriched with supportsTopLevelDeclarationpublic DslElementSyntaxBuilder withGeneric(org.mule.metadata.api.model.MetadataType type, DslElementSyntax child)
childElement declaration to this DslElementSyntax that
represents a generic type of this element.this builder instance enriched with the typed childElementpublic DslElementSyntaxBuilder containing(String name, DslElementSyntax child)
this builder instance enriched with the named childElementpublic DslElementSyntax build()
DslElementSyntaxCopyright © 2017 MuleSoft, Inc.. All rights reserved.