Class DslElementSyntax
java.lang.Object
org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax
Provides a declaration of how a
Component is represented in XML, containing all the required
information for the XML element creation and parsing.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDslElementSyntax(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 ofDslElementSyntax -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String name) getContainedElement(String name) getGeneric(org.mule.metadata.api.model.MetadataType type) Map<org.mule.metadata.api.model.MetadataType,DslElementSyntax> inthashCode()booleanbooleanbooleanbooleanbooleantoString()
-
Constructor Details
-
DslElementSyntax
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) Creates a new instance ofDslElementSyntax- Parameters:
attributeName- 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-falseif the element implements the Component's type as an xml extension, ortrueif the element is a wrapper of a ref to the Component's typesupportsAttributeDeclaration-trueif this element supports to be declared as an attribute in the parent elementsupportsChildDeclaration-trueif this element supports to be declared as a child element of its parentrequiresConfig- whether the element requires a parameter pointing to the configgenericsDsl- theDslElementSyntaxof 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.
-
-
Method Details
-
getElementName
- Returns:
- the name of this xml element
-
getPrefix
- Returns:
- the prefix of this xml element
-
getNamespace
- Returns:
- the namespace of this xml element
-
isWrapped
public boolean isWrapped()- Returns:
falseif the element implements the Component's type as an xml extension, ortrueif the element is a wrapper of a ref to the Component's type
-
getAttributeName
- Returns:
- the name of the attribute in the parent element that references this element
-
supportsAttributeDeclaration
public boolean supportsAttributeDeclaration()- Returns:
trueif this element supports to be declared as an attribute of its parent
-
supportsChildDeclaration
public boolean supportsChildDeclaration()- Returns:
trueif this element supports to be declared as a child element of its parent
-
supportsTopLevelDeclaration
public boolean supportsTopLevelDeclaration()- Returns:
trueif this element supports to be declared as a top level element
-
requiresConfig
public boolean requiresConfig()- Returns:
trueif this element requires having an attribute which points to a config
-
getGeneric
-
getGenerics
-
getChild
-
getChilds
- Returns:
- the
dslof the childs of this element
-
getAttribute
-
getAttributes
- Returns:
- the
dslof the attributes of this element
-
getContainedElement
-
getContainedElements
- Returns:
- the
dslof all the contained elements of this element
-
getContainedElementsByName
- Returns:
- the
dslof all the contained elements of this element
-
equals
-
hashCode
public int hashCode() -
toString
-