public class DslElementSyntax extends Object
Component is represented in XML, containing
all the required information for the XML element creation and parsing.| Constructor and Description |
|---|
DslElementSyntax(String attributeName,
String elementName,
String prefix,
String namespace,
boolean isWrapped,
boolean supportsAttributeDeclaration,
boolean supportsChildDeclaration,
boolean supportsTopLevelDeclaration,
boolean requiresConfig,
Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> genericsDsl,
Map<String,DslElementSyntax> containedElements)
Creates a new instance of
DslElementSyntax |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<DslElementSyntax> |
getAttribute(String name) |
String |
getAttributeName() |
List<DslElementSyntax> |
getAttributes() |
Optional<DslElementSyntax> |
getChild(String name) |
List<DslElementSyntax> |
getChilds() |
Optional<DslElementSyntax> |
getContainedElement(String name) |
List<DslElementSyntax> |
getContainedElements() |
String |
getElementName() |
Optional<DslElementSyntax> |
getGeneric(org.mule.metadata.api.model.MetadataType type) |
Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> |
getGenerics() |
String |
getNamespace() |
String |
getPrefix() |
int |
hashCode() |
boolean |
isWrapped() |
boolean |
requiresConfig() |
boolean |
supportsAttributeDeclaration() |
boolean |
supportsChildDeclaration() |
boolean |
supportsTopLevelDeclaration() |
public DslElementSyntax(String attributeName, String elementName, String prefix, String namespace, boolean isWrapped, boolean supportsAttributeDeclaration, boolean supportsChildDeclaration, boolean supportsTopLevelDeclaration, boolean requiresConfig, Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> genericsDsl, Map<String,DslElementSyntax> containedElements)
DslElementSyntaxattributeName - the name of the attribute in the parent element that
references this elementelementName - the name of this xml elementprefix - the prefix 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 typesupportsAttributeDeclaration - true if this element supports to be declared as an
attribute in the parent elementsupportsChildDeclaration - 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.public String getElementName()
public String getPrefix()
public String getNamespace()
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 supportsAttributeDeclaration()
true if this element supports to be declared as an attribute of its parentpublic 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 boolean requiresConfig()
true if this element requires having an attribute which points to a configpublic Optional<DslElementSyntax> getGeneric(org.mule.metadata.api.model.MetadataType type)
public Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> getGenerics()
public Optional<DslElementSyntax> getChild(String name)
public List<DslElementSyntax> getChilds()
dsl of the childs of this elementpublic Optional<DslElementSyntax> getAttribute(String name)
public List<DslElementSyntax> getAttributes()
dsl of the attributes of this elementpublic Optional<DslElementSyntax> getContainedElement(String name)
public List<DslElementSyntax> getContainedElements()
dsl of all the contained elements of this elementCopyright © 2017 MuleSoft, Inc.. All rights reserved.