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() |
static DslElementSyntaxBuilder |
create() |
DslElementSyntaxBuilder |
ofSubstitutionGroup(QName substitutionGroupName)
Adds a
QName indicating that the element described by this builder could be placed in
the given substitution group name |
DslElementSyntaxBuilder |
requiresConfig(boolean requiresConfig)
Declares whether or not
this DslElementSyntax requires a parameter
pointing to a config |
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 |
withAbstractElementName(String name)
Adds the abstract element name to the element being declared
|
DslElementSyntaxBuilder |
withAttributeName(String attributeName)
Adds a
name that describes how this element will be represented as an attribute. |
DslElementSyntaxBuilder |
withChild(String name,
DslElementSyntax child)
|
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 nameSpace,
String nameSpaceUri)
Adds a
nameSpace 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 nameSpace, String nameSpaceUri)
nameSpace to the element being declaredthis builder instance enriched with the nameSpacepublic DslElementSyntaxBuilder asWrappedElement(boolean isWrapped)
this DslElementSyntax is a wrapped element.this builder instance enriched with the isWrappedpublic 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 ofSubstitutionGroup(QName substitutionGroupName)
QName indicating that the element described by this builder could be placed in
the given substitution group namesubstitutionGroupName - QName of the substitution groupthis builder instance enriched with the QName indicating a
substitution group of the childElementpublic DslElementSyntaxBuilder withChild(String name, DslElementSyntax child)
this builder instance enriched with the named childElementpublic DslElementSyntaxBuilder withAbstractElementName(String name)
name - of the abstract elementthis builder instance enriched with the namepublic DslElementSyntax build()
DslElementSyntaxCopyright © 2016 MuleSoft, Inc.. All rights reserved.