public class SdkValueProviderReferenceParent extends AbstractSdkValueProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
GET_GLOBAL_EVALUATION_CONTEXT_METHOD |
static String |
GET_VALUE_PROVIDER_RESOLVER_DECLARATION_METHOD |
static String |
GLOBAL_EVALUATION_CONTEXT_FIELD |
static String |
RESOLVER_NAME_FIELD |
definition, ITEM_NAME_EXPRESSION_FIELD, ITEM_VALUE_EXPRESSION_FIELD, ITEMS_EXPRESSION_FIELD, parameter, PATH_TEMPLATE_FIELD, sdkOperationconnectorModel, NAME_MEMBER, outputDir, runConfiguration, VALUE_MEMBER| Constructor and Description |
|---|
SdkValueProviderReferenceParent(Path outputDir,
com.mulesoft.connectivity.rest.sdk.internal.connectormodel.ConnectorModel connectorModel,
com.mulesoft.connectivity.rest.sdk.internal.connectormodel.parameter.Parameter parameter,
SdkOperation operation,
RestSdkRunConfiguration runConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildValueProviderClass(com.squareup.javapoet.TypeSpec.Builder valueProviderClassBuilder)
Allows extending the default value provider class building
|
protected com.squareup.javapoet.CodeBlock |
generateBuildMethodBody()
Generates the 'build' method of the value provider that overrides the abstract one from
RestValueProvider. |
String |
getJavaClassName() |
com.squareup.javapoet.TypeName |
getTypeName() |
protected boolean |
isBoundParameter(com.mulesoft.connectivity.rest.sdk.internal.connectormodel.parameter.ParameterType parameterType,
SdkParameter sdkParameter)
Indicates if a
Parameter from the parent operation of the
value provider is necessary for this value provider to resolve the available values. |
protected boolean |
needsConfigureEvaluationContextMethod() |
applyTemplates, getBindingMethod, getPackage, getSuperClass, getValueProviderExpressionBuilder, needsClassConstantsgenerateGetter, generateOptionalGetter, getConstantStringField, getJavaFileBuilderForClass, getJavaType, getResourcesPath, getSourcesPath, writeClassToFile, writeJavaFilegetTemplateEnginepublic static final String GLOBAL_EVALUATION_CONTEXT_FIELD
public static final String GET_VALUE_PROVIDER_RESOLVER_DECLARATION_METHOD
public static final String GET_GLOBAL_EVALUATION_CONTEXT_METHOD
public static final String RESOLVER_NAME_FIELD
public SdkValueProviderReferenceParent(Path outputDir, com.mulesoft.connectivity.rest.sdk.internal.connectormodel.ConnectorModel connectorModel, com.mulesoft.connectivity.rest.sdk.internal.connectormodel.parameter.Parameter parameter, SdkOperation operation, RestSdkRunConfiguration runConfiguration)
protected void buildValueProviderClass(com.squareup.javapoet.TypeSpec.Builder valueProviderClassBuilder)
AbstractSdkValueProviderbuildValueProviderClass in class AbstractSdkValueProviderprotected com.squareup.javapoet.CodeBlock generateBuildMethodBody()
AbstractSdkValueProviderRestValueProvider.
This method creates the actual provider expression, being it an inline definition
or a reference to a value provider expression defined in the global context depending on the case.
If the returned CodeBlock is null, no build method will be generated.generateBuildMethodBody in class AbstractSdkValueProviderprotected boolean isBoundParameter(com.mulesoft.connectivity.rest.sdk.internal.connectormodel.parameter.ParameterType parameterType,
SdkParameter sdkParameter)
AbstractSdkValueProviderParameter from the parent operation of the
value provider is necessary for this value provider to resolve the available values.
If this method says is necessary, a @Parameter will be generated in the value provider class.
When that @Parameter is generated in the value provider, it is mandatory for it to have an assigned value in the
DSL for the resolver to be executed.isBoundParameter in class AbstractSdkValueProviderparameterType - The kind of parameter that is being checkedsdkParameter - The parameter that is being checkedpublic String getJavaClassName()
getJavaClassName in class AbstractSdkValueProviderpublic com.squareup.javapoet.TypeName getTypeName()
protected boolean needsConfigureEvaluationContextMethod()
needsConfigureEvaluationContextMethod in class AbstractSdkValueProviderCopyright © 2024. All rights reserved.