public class BaseComponentParameterAstDecorator extends Object implements ComponentParameterAst
ComponentParameterAst interface, to minimize the effort required
to implement this interface when decorating instances of ComponentParameterAst.| Constructor and Description |
|---|
BaseComponentParameterAstDecorator(ComponentParameterAst decorated)
Creates a new decorator for the provided instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ComponentParameterAst |
getDecorated() |
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. |
public BaseComponentParameterAstDecorator(ComponentParameterAst decorated)
decorated - the ComponentParameterAst instance to decorate.protected ComponentParameterAst getDecorated()
ComponentParameterAst instance.public 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 <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 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.