public class ComponentAstDTO extends BaseComponentAst implements ComponentAst
ComponentAst.| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
directChildren() |
void |
enrichWithImportedResources(Map<String,ImportedResourceDTO> importResourcesByRawLocation) |
Map<String,Object> |
getAnnotations() |
Optional<String> |
getComponentId() |
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType |
getComponentType() |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
ExtensionModelDTO |
getExtensionModelDTO() |
ComponentGenerationInformation |
getGenerationInformation() |
org.mule.runtime.api.component.ComponentIdentifier |
getIdentifier() |
org.mule.runtime.api.component.location.ComponentLocation |
getLocation() |
ComponentMetadataAst |
getMetadata() |
<M> Optional<M> |
getModel(Class<M> modelClass) |
String |
getModelName() |
ComponentAstDTOModelType |
getModelType() |
Optional<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> |
getParameterGroupModelForSourceModel(ComponentParameterAstDTO componentParameterAstDTO) |
Collection<ComponentParameterAst> |
getParameters() |
PropertiesResolver |
getPropertiesResolver() |
Optional<? extends org.mule.metadata.api.model.MetadataType> |
getSubTypeByName() |
org.mule.metadata.api.model.MetadataType |
getType() |
Class<?> |
loadClassByName(String fullyQualifiedName,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
ClassLoader applicationClassLoader) |
Class<?> |
loadClassFromClassLoader(String fullyQualifiedName,
ClassLoader classLoader) |
void |
resolveMapEntryComponentModels(ComponentAstDTO mapComponentAstDTO,
ComponentParameterAstDTO ownerComponentParameterAst,
ExtensionModelHelper extensionModelHelper,
ExtensionModelResolver extensionModelResolver,
GenerationInformationResolver generationInformationResolver) |
void |
resolveModelComponent(ComponentAstDTO parentComponentAstDTO,
ExtensionModelHelper extensionModelHelper,
GenerationInformationResolver generationInformationResolver) |
void |
resolveModelsRecursively(ComponentAstDTO parentComponentAstDTO,
ExtensionModelHelper extensionModelHelper,
ExtensionModelResolver extensionModelResolver,
GenerationInformationResolver generationInformationResolver)
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
|
org.mule.runtime.api.meta.model.parameter.ParameterGroupModel |
resolveParameterGroupModel(ComponentParameterAstDTO componentParameterAstDTO)
Given an owner
ComponentAstDTO with a model and a ParameterGroupModel name. |
org.mule.runtime.api.meta.model.parameter.ParameterModel |
resolveParameterModel(ComponentParameterAstDTO componentParameterAstDTO)
Given an owner
ComponentAstDTO with a model and a ParameterModel name. |
void |
resolveSimpleTypeComponentModel(ComponentParameterAstDTO ownerComponentParameterAst,
org.mule.metadata.api.model.SimpleType simpleType,
ExtensionModelResolver extensionModelResolver,
ExtensionModelHelper extensionModelHelper,
GenerationInformationResolver generationInformationResolver) |
Optional<? extends org.mule.metadata.api.model.MetadataType> |
resolveType(ExtensionModelHelper extensionModelHelper,
ClassLoader applicationClassLoader) |
void |
setComponentModel(org.mule.runtime.api.meta.model.ComponentModel model) |
void |
setConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel model) |
void |
setConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel model) |
void |
setExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel) |
void |
setGenerationInformation(ComponentGenerationInformationDTO generationInformation) |
void |
setParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model) |
void |
setPropertiesResolver(PropertiesResolver propertiesResolver) |
void |
setType(org.mule.metadata.api.model.MetadataType metadataType) |
directChildrenSpliterator, directChildrenStream, doGetParameter, getParameter, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStream, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdirectChildrenSpliterator, directChildrenStream, getParameter, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStreampublic 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)
public org.mule.runtime.api.component.ComponentIdentifier getIdentifier()
getIdentifier in interface ComponentAstpublic org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()
getComponentType in interface ComponentAstpublic org.mule.runtime.api.component.location.ComponentLocation getLocation()
getLocation in interface ComponentAstpublic ComponentMetadataAst getMetadata()
getMetadata in interface ComponentAstpublic ComponentGenerationInformation getGenerationInformation()
getGenerationInformation in interface ComponentAstpublic Optional<String> getComponentId()
getComponentId in interface ComponentAstpublic ComponentAstDTOModelType getModelType()
public Map<String,Object> getAnnotations()
getAnnotations in interface ComponentAstpublic org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
getExtensionModel in interface ComponentAstpublic <M> Optional<M> getModel(Class<M> modelClass)
getModel in interface ComponentAstpublic org.mule.metadata.api.model.MetadataType getType()
getType in interface ComponentAstpublic void setType(org.mule.metadata.api.model.MetadataType metadataType)
public Collection<ComponentParameterAst> getParameters()
getParameters in interface ComponentAstpublic List<ComponentAst> directChildren()
directChildren in interface ComponentAstpublic void setGenerationInformation(ComponentGenerationInformationDTO generationInformation)
public ExtensionModelDTO getExtensionModelDTO()
public void setComponentModel(org.mule.runtime.api.meta.model.ComponentModel model)
public void setParameterizedModel(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model)
public void setConfigurationModel(org.mule.runtime.api.meta.model.config.ConfigurationModel model)
public void setConnectionProviderModel(org.mule.runtime.api.meta.model.connection.ConnectionProviderModel model)
public String getModelName()
public void setExtensionModel(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
public PropertiesResolver getPropertiesResolver()
public void enrichWithImportedResources(Map<String,ImportedResourceDTO> importResourcesByRawLocation)
public void setPropertiesResolver(PropertiesResolver propertiesResolver)
public void resolveModelsRecursively(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver)
parentComponentAstDTO - the component that has componentAstDTO as a direct child, or null if none.extensionModelHelper - extensionModelResolver - generationInformationResolver - public void resolveModelComponent(ComponentAstDTO parentComponentAstDTO, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver)
public void resolveMapEntryComponentModels(ComponentAstDTO mapComponentAstDTO, ComponentParameterAstDTO ownerComponentParameterAst, ExtensionModelHelper extensionModelHelper, ExtensionModelResolver extensionModelResolver, GenerationInformationResolver generationInformationResolver)
public Optional<? extends org.mule.metadata.api.model.MetadataType> resolveType(ExtensionModelHelper extensionModelHelper, ClassLoader applicationClassLoader)
public Optional<? extends org.mule.metadata.api.model.MetadataType> getSubTypeByName()
public Class<?> loadClassByName(String fullyQualifiedName, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ClassLoader applicationClassLoader)
public Class<?> loadClassFromClassLoader(String fullyQualifiedName, ClassLoader classLoader) throws ClassNotFoundException
ClassNotFoundExceptionpublic org.mule.runtime.api.meta.model.parameter.ParameterModel resolveParameterModel(ComponentParameterAstDTO componentParameterAstDTO)
ComponentAstDTO with a model and a ParameterModel name. This method resolves the
ParameterModelcomponentParameterAstDTO - public Optional<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> getParameterGroupModelForSourceModel(ComponentParameterAstDTO componentParameterAstDTO)
public org.mule.runtime.api.meta.model.parameter.ParameterGroupModel resolveParameterGroupModel(ComponentParameterAstDTO componentParameterAstDTO)
ComponentAstDTO with a model and a ParameterGroupModel name. This method resolves the
ParameterGroupModelcomponentParameterAstDTO@return - the resolved ParameterGroupModelpublic void resolveSimpleTypeComponentModel(ComponentParameterAstDTO ownerComponentParameterAst, org.mule.metadata.api.model.SimpleType simpleType, ExtensionModelResolver extensionModelResolver, ExtensionModelHelper extensionModelHelper, GenerationInformationResolver generationInformationResolver)
Copyright © 2022 MuleSoft, Inc.. All rights reserved.