java.lang.Object
org.mule.runtime.extension.api.dsl.syntax.DslSyntaxUtils

public final class DslSyntaxUtils extends Object
Utils class with helper methods for the DslSyntaxResolver
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getSanitizedElementName(org.mule.runtime.api.meta.NamedObject component)
    Provides a sanitized, hyphenized, space-free name that can be used as an XML element-name for a given NamedObject
    static boolean
    supportsInlineDeclaration(org.mule.metadata.api.model.MetadataType metadataType, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslModel, boolean isContent)
     
    static boolean
    typeRequiresWrapperElement(org.mule.metadata.api.model.MetadataType metadataType, org.mule.runtime.api.meta.type.TypeCatalog typeCatalog)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getSanitizedElementName

      public static String getSanitizedElementName(org.mule.runtime.api.meta.NamedObject component)
      Provides a sanitized, hyphenized, space-free name that can be used as an XML element-name for a given NamedObject
      Parameters:
      component - the NamedObject whose name we want to convert
      Returns:
      a sanitized, hyphenized, space-free name that can be used as an XML element-name
      Since:
      1.5.0
    • supportsInlineDeclaration

      public static boolean supportsInlineDeclaration(org.mule.metadata.api.model.MetadataType metadataType, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslModel, boolean isContent)
    • typeRequiresWrapperElement

      public static boolean typeRequiresWrapperElement(org.mule.metadata.api.model.MetadataType metadataType, org.mule.runtime.api.meta.type.TypeCatalog typeCatalog)