public final class ImplicitObjectUtils extends Object
ParameterizedModel| Modifier and Type | Method and Description |
|---|---|
static ResolverSet |
buildImplicitResolverSet(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel,
MuleContext muleContext)
|
static <T extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel> |
getFirstImplicit(List<T> models)
Returns the first item in the
models List that can be used implicitly. |
public static ResolverSet buildImplicitResolverSet(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel, MuleContext muleContext)
ResolverSet based on the default values for the ParameterModels in the parametrizedModel.
If a ParameterModel returns null for ParameterModel.getDefaultValue() then it's ignored
parameterizedModel - a model holding the ParameterModels to considermuleContext - the Mule node.ResolverSetpublic static <T extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel> T getFirstImplicit(List<T> models)
models List that can be used implicitly.
A ParameterizedModel is consider to be implicit when all its ParameterModels are either optional or have a
default value
T - the generic type of the items in the models. It's a type which is assignable from
ParameterizedModelmodels - a List of Tmodels or null if none of the models are implicitCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.