Class ComponentAstDTO
java.lang.Object
org.mule.runtime.ast.api.util.BaseComponentAst
org.mule.runtime.ast.internal.serialization.dto.ComponentAstDTO
- All Implemented Interfaces:
ComponentAst
This is a serializable form of a
ComponentAst.-
Constructor Summary
ConstructorsConstructorDescriptionComponentAstDTO(List<ComponentAstDTO> directChildren, String componentType, org.mule.runtime.api.component.ComponentIdentifier identifier, org.mule.runtime.api.component.location.ComponentLocation location, ComponentMetadataAstDTO metadata, Collection<ComponentParameterAstDTO> parameters, String componentId, ExtensionModelDTO extensionModel, String modelName, ComponentAstDTOModelType modelType, Map<String, Object> annotations) -
Method Summary
Modifier and TypeMethodDescriptionvoidenrichWithImportedResources(Map<String, ImportedResourceDTO> importResourcesByRawLocation) org.mule.runtime.api.component.TypedComponentIdentifier.ComponentTypeorg.mule.runtime.api.meta.model.ExtensionModelorg.mule.runtime.api.component.ComponentIdentifierorg.mule.runtime.api.component.location.ComponentLocation<M> Optional<M>Optional<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel>getParameterGroupModelForSourceModel(ComponentParameterAstDTO componentParameterAstDTO) Optional<? extends org.mule.metadata.api.model.MetadataType>org.mule.metadata.api.model.MetadataTypegetType()Class<?>loadClassByName(String fullyQualifiedName, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ClassLoader applicationClassLoader) Class<?>loadClassFromClassLoader(String fullyQualifiedName, ClassLoader classLoader) voidresolveMapEntryComponentModels(ComponentAstDTO mapComponentAstDTO, ComponentParameterAstDTO ownerComponentParameterAst, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) voidresolveModelComponent(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver) voidresolveModelsRecursively(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) Given a component, this method will resolve its extension model, its models, its generation information and recursively try to resolve those for its children and parametersorg.mule.runtime.api.meta.model.parameter.ParameterGroupModelresolveParameterGroupModel(ComponentParameterAstDTO componentParameterAstDTO) Given an ownerComponentAstDTOwith a model and aParameterGroupModelname.org.mule.runtime.api.meta.model.parameter.ParameterModelresolveParameterModel(ComponentParameterAstDTO componentParameterAstDTO) Given an ownerComponentAstDTOwith a model and aParameterModelname.voidresolveSimpleTypeComponentModel(ComponentParameterAstDTO ownerComponentParameterAst, org.mule.metadata.api.model.SimpleType simpleType, ExtensionModelResolver extensionModelResolver, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) Optional<? extends org.mule.metadata.api.model.MetadataType>resolveType(ExtensionModelHelper extensionModelHelper, ClassLoader applicationClassLoader) voidsetComponentModel(org.mule.runtime.api.meta.model.ComponentModel model) voidsetConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel model) voidsetConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel model) voidsetExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel) voidsetGenerationInformation(ComponentGenerationInformationDTO generationInformation) voidsetParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model) voidsetPropertiesResolver(PropertiesResolver propertiesResolver) voidsetType(org.mule.metadata.api.model.MetadataType metadataType) Methods inherited from class org.mule.runtime.ast.api.util.BaseComponentAst
directChildrenSpliterator, directChildrenStream, doGetParameter, getParameter, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStream, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mule.runtime.ast.api.ComponentAst
directChildrenSpliterator, directChildrenStream, directChildrenStreamByIdentifier, getParameter, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStream
-
Constructor Details
-
ComponentAstDTO
public ComponentAstDTO(List<ComponentAstDTO> directChildren, String componentType, org.mule.runtime.api.component.ComponentIdentifier identifier, org.mule.runtime.api.component.location.ComponentLocation location, ComponentMetadataAstDTO metadata, Collection<ComponentParameterAstDTO> parameters, String componentId, ExtensionModelDTO extensionModel, String modelName, ComponentAstDTOModelType modelType, Map<String, Object> annotations)
-
-
Method Details
-
getIdentifier
public org.mule.runtime.api.component.ComponentIdentifier getIdentifier()- Specified by:
getIdentifierin interfaceComponentAst
-
getComponentType
public org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()- Specified by:
getComponentTypein interfaceComponentAst
-
getLocation
public org.mule.runtime.api.component.location.ComponentLocation getLocation()- Specified by:
getLocationin interfaceComponentAst
-
getMetadata
- Specified by:
getMetadatain interfaceComponentAst
-
getGenerationInformation
- Specified by:
getGenerationInformationin interfaceComponentAst
-
getComponentId
- Specified by:
getComponentIdin interfaceComponentAst
-
getModelType
-
getAnnotations
- Specified by:
getAnnotationsin interfaceComponentAst
-
getExtensionModel
public org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()- Specified by:
getExtensionModelin interfaceComponentAst
-
getModel
- Specified by:
getModelin interfaceComponentAst
-
getType
public org.mule.metadata.api.model.MetadataType getType()- Specified by:
getTypein interfaceComponentAst
-
setType
public void setType(org.mule.metadata.api.model.MetadataType metadataType) -
getParameters
- Specified by:
getParametersin interfaceComponentAst
-
directChildren
- Specified by:
directChildrenin interfaceComponentAst
-
setGenerationInformation
-
getExtensionModelDTO
-
setComponentModel
public void setComponentModel(org.mule.runtime.api.meta.model.ComponentModel model) -
setParameterizedModel
public void setParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model) -
setConfigurationModel
public void setConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel model) -
setConnectionProviderModel
public void setConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel model) -
getModelName
-
setExtensionModel
public void setExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel) -
getPropertiesResolver
-
enrichWithImportedResources
public void enrichWithImportedResources(Map<String, ImportedResourceDTO> importResourcesByRawLocation) -
setPropertiesResolver
-
resolveModelsRecursively
public void resolveModelsRecursively(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) Given a component, this method will resolve its extension model, its models, its generation information and recursively try to resolve those for its children and parameters- Parameters:
parentComponentAstDTO- the component that hascomponentAstDTOas a direct child, or null if none.extensionModelHelper-extensionModelResolver-generationInformationResolver-
-
resolveModelComponent
public void resolveModelComponent(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver) -
resolveMapEntryComponentModels
public void resolveMapEntryComponentModels(ComponentAstDTO mapComponentAstDTO, ComponentParameterAstDTO ownerComponentParameterAst, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils) -
resolveType
public Optional<? extends org.mule.metadata.api.model.MetadataType> resolveType(ExtensionModelHelper extensionModelHelper, ClassLoader applicationClassLoader) -
getSubTypeByName
-
loadClassByName
public Class<?> loadClassByName(String fullyQualifiedName, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ClassLoader applicationClassLoader) -
loadClassFromClassLoader
public Class<?> loadClassFromClassLoader(String fullyQualifiedName, ClassLoader classLoader) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
resolveParameterModel
public org.mule.runtime.api.meta.model.parameter.ParameterModel resolveParameterModel(ComponentParameterAstDTO componentParameterAstDTO) Given an ownerComponentAstDTOwith a model and aParameterModelname. This method resolves theParameterModel- Parameters:
componentParameterAstDTO-
-
getParameterGroupModelForSourceModel
public Optional<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> getParameterGroupModelForSourceModel(ComponentParameterAstDTO componentParameterAstDTO) -
resolveParameterGroupModel
public org.mule.runtime.api.meta.model.parameter.ParameterGroupModel resolveParameterGroupModel(ComponentParameterAstDTO componentParameterAstDTO) Given an ownerComponentAstDTOwith a model and aParameterGroupModelname. This method resolves theParameterGroupModel- Parameters:
componentParameterAstDTO-- Returns:
- the resolved
ParameterGroupModel
-
resolveSimpleTypeComponentModel
public void resolveSimpleTypeComponentModel(ComponentParameterAstDTO ownerComponentParameterAst, org.mule.metadata.api.model.SimpleType simpleType, ExtensionModelResolver extensionModelResolver, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver, ParameterModelUtils parameterModelUtils)
-