public class ExtensionDeclaration extends NamedDeclaration<ExtensionDeclaration> implements ConnectedDeclaration<ExtensionDeclaration>, WithSourcesDeclaration<ExtensionDeclaration>, WithOperationsDeclaration<ExtensionDeclaration>, WithFunctionsDeclaration<ExtensionDeclaration>, WithConstructsDeclaration<ExtensionDeclaration>
ExtensionModel. It contains raw, unvalidated
data which is used to declare the structure of a ExtensionModeladdModelProperty, getDescription, getDisplayModel, getModelProperties, getModelProperty, setDescription, setDisplayModelpublic List<ConfigurationDeclaration> getConfigurations()
ConfigurationDeclaration instances
that have been declared so far.nullpublic ExtensionDeclaration addConfig(ConfigurationDeclaration config)
ConfigurationDeclarationconfig - a not null ConfigurationDeclaration{@link - IllegalArgumentException} if config is nullpublic List<ConstructDeclaration> getConstructs()
getConstructs in interface WithConstructsDeclaration<ExtensionDeclaration>List with
the available ConstructDeclarationspublic ExtensionDeclaration addConstruct(ConstructDeclaration declaration)
ConstructDeclarationaddConstruct in interface WithConstructsDeclaration<ExtensionDeclaration>declaration - the declaration to be addedthis declarerpublic List<OperationDeclaration> getOperations()
getOperations in interface WithOperationsDeclaration<ExtensionDeclaration>List with
the available OperationDeclarationspublic List<ConnectionProviderDeclaration> getConnectionProviders()
getConnectionProviders in interface ConnectedDeclaration<ExtensionDeclaration>List with the available ConnectionProviderDeclarationspublic List<SourceDeclaration> getMessageSources()
getMessageSources in interface WithSourcesDeclaration<ExtensionDeclaration>List with the available SourceDeclarationspublic ExtensionDeclaration addConnectionProvider(ConnectionProviderDeclaration connectionProvider)
addConnectionProvider in interface ConnectedDeclaration<ExtensionDeclaration>connectionProvider - a not null ConnectionProviderDeclarationthis declarationIllegalArgumentException - if connectionProvider is nullpublic ExtensionDeclaration addOperation(OperationDeclaration operation)
OperationDeclarationaddOperation in interface WithOperationsDeclaration<ExtensionDeclaration>operation - a not null OperationDeclarationthis declaration{@link - IllegalArgumentException} if operation is nullpublic ExtensionDeclaration addMessageSource(SourceDeclaration sourceDeclaration)
SourceDeclarationaddMessageSource in interface WithSourcesDeclaration<ExtensionDeclaration>sourceDeclaration - a not null SourceDeclarationthis declaration{@link - IllegalArgumentException} if sourceDeclaration is nullpublic ExtensionDeclaration addFunction(FunctionDeclaration function)
FunctionDeclarationaddFunction in interface WithFunctionsDeclaration<ExtensionDeclaration>function - the provider's declarationthis declarationpublic List<FunctionDeclaration> getFunctions()
getFunctions in interface WithFunctionsDeclaration<ExtensionDeclaration>List with the FunctionDeclaration which have been
added to this declarationpublic Set<org.mule.metadata.api.model.ObjectType> getTypes()
Set with all the types registered through getTypes()public Set<String> getResources()
Set with the paths to all of the resources exposed by the
declared extensionpublic Set<String> getPrivilegedPackages()
Set with all the Java package name that are registered as privileged APIpublic Set<String> getPrivilegedArtifacts()
Set with all the artifact IDs that are registered to have access to the privileged API. Each artifact is defined using Maven's groupId:artifactIdpublic ExtensionDeclaration addType(org.mule.metadata.api.model.ObjectType objectType)
objectTypeobjectType - an ObjectTypethis declarationpublic ExtensionDeclaration addResource(String resourcePath)
resourcePathresourcePath - the relative path to the extension's resourcethis declarationpublic ExtensionDeclaration addPrivilegedPackage(String packageName)
packageName - the Java package name to be exportedthis declarationpublic ExtensionDeclaration addPrivilegedArtifact(String artifactId)
artifactId - the artifactId that the extension provides access to the privileged APIthis declarationpublic ExtensionDeclaration addImportedType(ImportedTypeModel importedType)
importedType - a ImportedTypeModel with the import informationthis declarationpublic ExtensionDeclaration addExternalLibrary(ExternalLibraryModel externalLibraryModel)
ExternalLibraryModelexternalLibraryModel - the model of the external library to be referencedthis declarerpublic void addSubtype(org.mule.metadata.api.model.MetadataType baseType,
org.mule.metadata.api.model.MetadataType subType)
subType as an implementation of the baseTypebaseType - a base typesubType - a sub type implementationpublic void addSubtypes(org.mule.metadata.api.model.MetadataType baseType,
Collection<org.mule.metadata.api.model.MetadataType> subTypes)
subTypes as implementations of the baseTypebaseType - a base typesubTypes - a Collection of sub type implementationspublic Set<SubTypesModel> getSubTypes()
Map with the subType mappings declared through addSubtype(MetadataType, MetadataType)
and addSubtypes(MetadataType, Collection)public Set<ExternalLibraryModel> getExternalLibraryModels()
Set of ExternalLibraryModel which represent the extension's external librariespublic String getName()
getName in interface NamedObjectgetName in class NamedDeclaration<ExtensionDeclaration>public void setName(String name)
public String getVersion()
public String getVendor()
public void setVendor(String vendor)
public Category getCategory()
public void setCategory(Category category)
public MuleVersion getMinMuleVersion()
public void setMinMuleVersion(MuleVersion minMuleVersion)
public XmlDslModel getXmlDslModel()
public void setXmlDslModel(XmlDslModel xmlDslModel)
public Set<ImportedTypeModel> getImportedTypes()
public void addErrorModel(ErrorModel errorModel)
public Set<ErrorModel> getErrorModels()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.