Class ComponentParameterAstDTO
java.lang.Object
org.mule.runtime.ast.internal.serialization.dto.ComponentParameterAstDTO
- All Implemented Interfaces:
ComponentParameterAst,ExpressionAwareParameter,ArtifactAstSerializerMetadataAware
public class ComponentParameterAstDTO
extends Object
implements ComponentParameterAst, ExpressionAwareParameter, ArtifactAstSerializerMetadataAware
This is a serializable form of a
ComponentParameterAst. A notable difference is that the values are stored as a
ParameterValueContainer in order to prevent type inference problems when serializing.-
Field Summary
Fields inherited from interface org.mule.runtime.ast.internal.param.ExpressionAwareParameter
DEFAULT_EXPRESSION_PREFIX, DEFAULT_EXPRESSION_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionComponentParameterAstDTO(ParameterValueContainer value, String unresolvedValue, boolean defaultValue, ComponentMetadataAstDTO metadata, String groupModelName, String modelName) -
Method Summary
Modifier and TypeMethodDescriptionextractExpression(Object value) org.mule.runtime.api.meta.model.parameter.ParameterGroupModelorg.mule.runtime.api.meta.model.parameter.ParameterModelgetModel()<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>> booleanbooleanisExpression(Object value) booleanbooleanbooleanA value in a parameter is represented with anEitherand it can be a left or a right value of it.voidresolveListElementModels(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) voidresolveMapEntryAttribute(org.mule.runtime.api.meta.model.parameter.ParameterModel ownerParameterModel, ComponentGenerationInformation ownerParameterGenerationInformation, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ComponentAstDTO componentAstDTO, ParameterModelUtils parameterModelUtils) org.mule.runtime.api.meta.model.parameter.ParameterModelresolveParameterModelFromOwnerMetadataTypeModelAdapter(MetadataTypeModelAdapter metadataTypeModelAdapter) voidsetArtifactAstSerializerMetadata(ArtifactAstSerializerMetadata artifactAstSerializerMetadata) Sets the givenArtifactAstSerializerMetadatato this instance.voidsetGenerationInformation(ComponentGenerationInformationDTO generationInformation) voidsetModel(org.mule.runtime.api.meta.model.parameter.ParameterModel parameterModel, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ParameterModelUtils parameterModelUtils) voidsetPropertiesResolver(PropertiesResolver propertiesResolver) Setting a properties resolver should not only impact this instance.toString()
-
Constructor Details
-
ComponentParameterAstDTO
public ComponentParameterAstDTO(ParameterValueContainer value, String unresolvedValue, boolean defaultValue, ComponentMetadataAstDTO metadata, String groupModelName, String modelName)
-
-
Method Details
-
getModel
public org.mule.runtime.api.meta.model.parameter.ParameterModel getModel()- Specified by:
getModelin interfaceComponentParameterAst- Specified by:
getModelin interfaceExpressionAwareParameter
-
getGroupModel
public org.mule.runtime.api.meta.model.parameter.ParameterGroupModel getGroupModel()- Specified by:
getGroupModelin interfaceComponentParameterAst
-
getValue
- Specified by:
getValuein interfaceComponentParameterAst
-
getValueOrResolutionError
public <T> org.mule.runtime.api.functional.Either<String,org.mule.runtime.api.functional.Either<ParameterResolutionException, getValueOrResolutionError()T>> - Specified by:
getValueOrResolutionErrorin interfaceComponentParameterAst
-
isExpression
- Specified by:
isExpressionin interfaceExpressionAwareParameter
-
extractExpression
- Specified by:
extractExpressionin interfaceExpressionAwareParameter
-
getRawValue
- Specified by:
getRawValuein interfaceComponentParameterAst
-
getResolvedRawValue
- Specified by:
getResolvedRawValuein interfaceComponentParameterAst
-
getMetadata
- Specified by:
getMetadatain interfaceComponentParameterAst
-
getGenerationInformation
- Specified by:
getGenerationInformationin interfaceComponentParameterAst
-
isDefaultValue
public boolean isDefaultValue()- Specified by:
isDefaultValuein interfaceComponentParameterAst
-
setModel
public void setModel(org.mule.runtime.api.meta.model.parameter.ParameterModel parameterModel, org.mule.runtime.api.meta.model.parameter.ParameterGroupModel parameterGroupModel, ParameterModelUtils parameterModelUtils) -
setGenerationInformation
-
getGroupModelName
-
getModelName
-
setPropertiesResolver
Setting a properties resolver should not only impact this instance. It should cascade to possibleComponentAsts that might be the value of this parameter.- Parameters:
propertiesResolver-
-
getPropertiesResolver
-
toString
-
resolveListElementModels
public void resolveListElementModels(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) -
resolveParameterModelFromOwnerMetadataTypeModelAdapter
public org.mule.runtime.api.meta.model.parameter.ParameterModel resolveParameterModelFromOwnerMetadataTypeModelAdapter(MetadataTypeModelAdapter metadataTypeModelAdapter) -
isValueAComponentAstDTO
public boolean isValueAComponentAstDTO() -
isValueAListOfComponentAstDTOs
public boolean isValueAListOfComponentAstDTOs()A value in a parameter is represented with anEitherand it can be a left or a right value of it. A right value might be a list ofComponentAstDTOs- Returns:
- Whether it is a
ListofComponentAstDTOs or not
-
isValueAList
public boolean isValueAList() -
resolveMapEntryAttribute
public void resolveMapEntryAttribute(org.mule.runtime.api.meta.model.parameter.ParameterModel ownerParameterModel, ComponentGenerationInformation ownerParameterGenerationInformation, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ComponentAstDTO componentAstDTO, ParameterModelUtils parameterModelUtils) -
setArtifactAstSerializerMetadata
public void setArtifactAstSerializerMetadata(ArtifactAstSerializerMetadata artifactAstSerializerMetadata) Description copied from interface:ArtifactAstSerializerMetadataAwareSets the givenArtifactAstSerializerMetadatato this instance.- Specified by:
setArtifactAstSerializerMetadatain interfaceArtifactAstSerializerMetadataAware- Parameters:
artifactAstSerializerMetadata- TheArtifactAstSerializerMetadataassociated with this DTO's serialization/deserialization context.
-