Class ContentParameterModelValidator
java.lang.Object
org.mule.runtime.extension.internal.loader.validator.ContentParameterModelValidator
- All Implemented Interfaces:
ExtensionModelValidator
Validates that all content parameters are property configured.
For configs and connection providers, tt validates that they do not have content parameters. For Operations and sources, it validates that content parameters meet the following:
- Support or require expressions
- They don't allow DSL references
- There's no more than one
ParameterRole.PRIMARY_CONTENT ParameterRole.PRIMARY_CONTENTparameter is optional and defaults toOptional.PAYLOAD
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ProblemsReporter problemsReporter) Validates the givenmodelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mule.runtime.extension.api.loader.ExtensionModelValidator
validate
-
Constructor Details
-
ContentParameterModelValidator
public ContentParameterModelValidator()
-
-
Method Details
-
validate
public void validate(org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ProblemsReporter problemsReporter) Description copied from interface:ExtensionModelValidatorValidates the givenmodel- Specified by:
validatein interfaceExtensionModelValidator- Parameters:
extensionModel- aExtensionModel
-