| Constructor and Description |
|---|
DslElementSyntax(String attributeName,
String elementName,
String abstractElementName,
String elementNameSpace,
String nameSpaceUri,
boolean isWrapped,
boolean supportsChildDeclaration,
boolean supportsTopLevelDeclaration,
boolean requiresConfig,
Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> genericsDsl,
Map<String,DslElementSyntax> childsByName,
List<QName> substitutionGroups)
Creates a new instance of
DslElementSyntax |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbstractElementName() |
String |
getAttributeName() |
Optional<DslElementSyntax> |
getChild(String name) |
String |
getElementName() |
Optional<DslElementSyntax> |
getGeneric(org.mule.metadata.api.model.MetadataType type) |
String |
getNamespace() |
String |
getNamespaceUri() |
List<QName> |
getSubstitutionGroups() |
boolean |
isWrapped() |
boolean |
requiresConfig() |
boolean |
supportsChildDeclaration() |
boolean |
supportsTopLevelDeclaration() |
public DslElementSyntax(String attributeName, String elementName, String abstractElementName, String elementNameSpace, String nameSpaceUri, boolean isWrapped, boolean supportsChildDeclaration, boolean supportsTopLevelDeclaration, boolean requiresConfig, Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> genericsDsl, Map<String,DslElementSyntax> childsByName, List<QName> substitutionGroups)
DslElementSyntaxattributeName - the name of the attribute in the parent element that
references this elementelementName - the name of this xml elementabstractElementName - the name of the abstract xml elementelementNameSpace - the namespace of this xml elementisWrapped - false if the element implements the Component's type
as an xml extension, or true if the element is a
wrapper of a ref to the Component's typesupportsChildDeclaration - true if this element supports to be declared as a
child element of its parentrequiresConfig - whether the element requires a parameter pointing to the
configgenericsDsl - the DslElementSyntax of this element's type generics,
if any is present, that complete the element description of
container elements of generic types, like Collections or Maps
for which the Dsl declaration is modified depending on the
contained type.childsByName - the DslElementSyntax of this element's named childs.
For complex types with fields that are mapped as child
elements of this element, the Dsl varies depending on each
fields definition, associating each field's child element to
thissubstitutionGroups - The list of the QName of the substitution groups that
the current element is acceptablepublic String getElementName()
public String getNamespace()
public String getNamespaceUri()
public boolean isWrapped()
false if the element implements the Component's type as an xml extension, or
true if the element is a wrapper of a ref to the Component's typepublic String getAttributeName()
public boolean supportsChildDeclaration()
true if this element supports to be declared as a child element of its parentpublic boolean supportsTopLevelDeclaration()
true if this element supports to be declared as a top level elementpublic String getAbstractElementName()
public Optional<DslElementSyntax> getGeneric(org.mule.metadata.api.model.MetadataType type)
type - MetadataType of the generic for which its dsl is
requireddsl for the given generic's type if one is presentpublic Optional<DslElementSyntax> getChild(String name)
public boolean requiresConfig()
true if this element requires having an attribute which points to a configCopyright © 2016 MuleSoft, Inc.. All rights reserved.