public class ComponentParameterAstDTO extends Object implements ComponentParameterAst
ComponentParameterAst. A notable difference is that the values are stored as a
ParameterValueContainer in order to prevent type inference problems when serializing.| Constructor and Description |
|---|
ComponentParameterAstDTO(ParameterValueContainer value,
String unresolvedValue,
boolean defaultValue,
ComponentMetadataAstDTO metadata,
String groupModelName,
String modelName) |
| Modifier and Type | Method and Description |
|---|---|
String |
extractExpression(String expression)
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() |
String |
getGroupModelName() |
Optional<ComponentMetadataAst> |
getMetadata() |
org.mule.runtime.api.meta.model.parameter.ParameterModel |
getModel() |
String |
getModelName() |
PropertiesResolver |
getPropertiesResolver() |
String |
getRawValue() |
String |
getResolvedRawValue() |
<T> org.mule.runtime.api.functional.Either<String,T> |
getValue() |
<T> org.mule.runtime.api.functional.Either<String,org.mule.runtime.api.functional.Either<ParameterResolutionException,T>> |
getValueOrResolutionError() |
boolean |
isDefaultValue() |
boolean |
isValueAComponentAstDTO() |
boolean |
isValueAListOfComponentAstDTOs()
A value in a parameter is represented with an
Either and it can be a left or a right value of it. |
void |
resolveListElementModels(ExtensionModelHelper extensionModelHelper,
ExtensionModelResolver extensionModelResolver,
GenerationInformationResolver generationInformationResolver) |
org.mule.runtime.api.meta.model.parameter.ParameterModel |
resolveParameterModelFromOwnerMetadataTypeModelAdapter(MetadataTypeModelAdapter metadataTypeModelAdapter) |
void |
setGenerationInformation(ComponentGenerationInformationDTO generationInformation) |
void |
setModel(org.mule.runtime.api.meta.model.parameter.ParameterModel parameterModel,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel) |
void |
setPropertiesResolver(PropertiesResolver propertiesResolver)
Setting a properties resolver should not only impact this instance.
|
String |
toString() |
public ComponentParameterAstDTO(ParameterValueContainer value, String unresolvedValue, boolean defaultValue, ComponentMetadataAstDTO metadata, String groupModelName, String modelName)
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 ComponentParameterAstpublic <T> org.mule.runtime.api.functional.Either<String,T> getValue()
getValue in interface ComponentParameterAstpublic <T> org.mule.runtime.api.functional.Either<String,org.mule.runtime.api.functional.Either<ParameterResolutionException,T>> getValueOrResolutionError()
getValueOrResolutionError in interface ComponentParameterAstpublic String extractExpression(String expression)
expression - Value to parsepublic String getRawValue()
getRawValue in interface ComponentParameterAstpublic String getResolvedRawValue()
getResolvedRawValue in interface ComponentParameterAstpublic Optional<ComponentMetadataAst> getMetadata()
getMetadata in interface ComponentParameterAstpublic ComponentGenerationInformation getGenerationInformation()
getGenerationInformation in interface ComponentParameterAstpublic boolean isDefaultValue()
isDefaultValue in interface ComponentParameterAstpublic void setModel(org.mule.runtime.api.meta.model.parameter.ParameterModel parameterModel,
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel)
public void setGenerationInformation(ComponentGenerationInformationDTO generationInformation)
public String getGroupModelName()
public String getModelName()
public void setPropertiesResolver(PropertiesResolver propertiesResolver)
ComponentAsts that might be the value of this parameter.propertiesResolver - public PropertiesResolver getPropertiesResolver()
public void resolveListElementModels(ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver)
public org.mule.runtime.api.meta.model.parameter.ParameterModel resolveParameterModelFromOwnerMetadataTypeModelAdapter(MetadataTypeModelAdapter metadataTypeModelAdapter)
public boolean isValueAComponentAstDTO()
public boolean isValueAListOfComponentAstDTOs()
Either and it can be a left or a right value of it. A right value might
be a list of ComponentAstDTOsList of ComponentAstDTOs or notCopyright © 2022 MuleSoft, Inc.. All rights reserved.