public class DefaultComponentParameterAst extends Object implements ComponentParameterAst
| Constructor and Description |
|---|
DefaultComponentParameterAst(ComponentAstBuilder complexValue,
org.mule.runtime.api.meta.model.parameter.ParameterModel model,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel,
ComponentMetadataAst metadata,
ComponentGenerationInformation generationInformation,
PropertiesResolver propertiesResolver) |
DefaultComponentParameterAst(List<ComponentAstBuilder> complexValue,
org.mule.runtime.api.meta.model.parameter.ParameterModel model,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel,
ComponentMetadataAst metadata,
ComponentGenerationInformation generationInformation,
PropertiesResolver propertiesResolver) |
DefaultComponentParameterAst(List<org.mule.runtime.extension.api.error.ErrorMapping> complexValue,
org.mule.runtime.api.meta.model.parameter.ParameterModel model,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel,
ComponentGenerationInformation generationInformation,
PropertiesResolver propertiesResolver) |
DefaultComponentParameterAst(String rawValue,
org.mule.runtime.api.meta.model.parameter.ParameterModel model,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel,
ComponentGenerationInformation generationInformation,
PropertiesResolver propertiesResolver) |
DefaultComponentParameterAst(String rawValue,
org.mule.runtime.api.meta.model.parameter.ParameterModel model,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel,
ComponentMetadataAst metadata,
ComponentGenerationInformation generationInformation,
PropertiesResolver propertiesResolver) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
extractExpression(Object value)
Parse the given value and remove expression markers if it is considered as an expression.
|
ComponentGenerationInformation |
getGenerationInformation() |
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel |
getGroupModel() |
Optional<ComponentMetadataAst> |
getMetadata() |
org.mule.runtime.api.meta.model.parameter.ParameterModel |
getModel() |
String |
getRawValue()
This method WILL NOT resolve any property placeholders to the actual values if present.
|
String |
getResolvedRawValue()
This method WILL resolve any property placeholders to the actual values if present.
|
<T> org.mule.runtime.api.functional.Either<String,T> |
getValue()
Returns either the expression for this parameter or a fixed value, depending on what is set in the DSL.
|
<T> org.mule.runtime.api.functional.Either<String,org.mule.runtime.api.functional.Either<ParameterResolutionException,T>> |
getValueOrResolutionError()
Returns either the expression for this parameter, a
ParameterResolutionException occurred while converting the value
to its expected type, a fixed value, depending on what is set in the DSL. |
boolean |
isDefaultValue()
Returns
true if this is a default parameter; returns false otherwise. |
String |
toString() |
public DefaultComponentParameterAst(String rawValue, org.mule.runtime.api.meta.model.parameter.ParameterModel model, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ComponentGenerationInformation generationInformation, PropertiesResolver propertiesResolver)
public DefaultComponentParameterAst(String rawValue, org.mule.runtime.api.meta.model.parameter.ParameterModel model, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ComponentMetadataAst metadata, ComponentGenerationInformation generationInformation, PropertiesResolver propertiesResolver)
public DefaultComponentParameterAst(ComponentAstBuilder complexValue, org.mule.runtime.api.meta.model.parameter.ParameterModel model, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ComponentMetadataAst metadata, ComponentGenerationInformation generationInformation, PropertiesResolver propertiesResolver)
public DefaultComponentParameterAst(List<ComponentAstBuilder> complexValue, org.mule.runtime.api.meta.model.parameter.ParameterModel model, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ComponentMetadataAst metadata, ComponentGenerationInformation generationInformation, PropertiesResolver propertiesResolver)
public DefaultComponentParameterAst(List<org.mule.runtime.extension.api.error.ErrorMapping> complexValue, org.mule.runtime.api.meta.model.parameter.ParameterModel model, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ComponentGenerationInformation generationInformation, PropertiesResolver propertiesResolver)
public Optional<String> extractExpression(Object value)
value - Value to parsepublic <T> org.mule.runtime.api.functional.Either<String,T> getValue()
ComponentParameterAst
When using the right part returned by this method for a parameter that is a complex object defined inline, the
definition of the object will be returned (a ComponentAst), not the object itself.
getValue in interface ComponentParameterAstpublic <T> org.mule.runtime.api.functional.Either<String,org.mule.runtime.api.functional.Either<ParameterResolutionException,T>> getValueOrResolutionError()
ComponentParameterAstParameterResolutionException occurred while converting the value
to its expected type, a fixed value, depending on what is set in the DSL.
Refer to ComponentParameterAst.getValue() for details on the left and the right,right returned value.
getValueOrResolutionError in interface ComponentParameterAstpublic String getRawValue()
ComponentParameterAstComponentParameterAst.getResolvedRawValue() or
ComponentParameterAst.getValue() if properties resolution is needed.getRawValue in interface ComponentParameterAstpublic String getResolvedRawValue()
ComponentParameterAstComponentParameterAst.getRawValue() if properties
resolution is not wanted.
Property placeholders resolution is done with the object given to
ArtifactAst.updatePropertiesResolver(java.util.function.UnaryOperator).
getResolvedRawValue in interface ComponentParameterAstpublic org.mule.runtime.api.meta.model.parameter.ParameterModel getModel()
getModel in interface ComponentParameterAstpublic org.mule.runtime.api.meta.model.parameter.ParameterGroupModel getGroupModel()
getGroupModel in interface ComponentParameterAstnull.public Optional<ComponentMetadataAst> getMetadata()
getMetadata in interface ComponentParameterAstOptional.empty() otherwise.public ComponentGenerationInformation getGenerationInformation()
getGenerationInformation in interface ComponentParameterAstpublic boolean isDefaultValue()
ComponentParameterAsttrue if this is a default parameter; returns false otherwise.isDefaultValue in interface ComponentParameterAstCopyright © 2022 MuleSoft, Inc.. All rights reserved.