public class ExtensionDeclaration extends NamedDeclaration<ExtensionDeclaration> implements ConnectedDeclaration<ExtensionDeclaration>, WithSourcesDeclaration<ExtensionDeclaration>, WithOperationsDeclaration<ExtensionDeclaration>
ExtensionModel. It contains raw, unvalidated
data which is used to declare the structure of a ExtensionModel| Modifier and Type | Method and Description |
|---|---|
ExtensionDeclaration |
addConfig(ConfigurationDeclaration config)
Adds a
ConfigurationDeclaration |
ExtensionDeclaration |
addConnectionProvider(ConnectionProviderDeclaration connectionProvider)
|
void |
addErrorModel(ErrorModel errorModel) |
ExtensionDeclaration |
addExternalLibrary(ExternalLibraryModel externalLibraryModel)
Adds an
ExternalLibraryModel |
ExtensionDeclaration |
addImportedType(ImportedTypeModel importedType)
Declares that the extension is importing a type from another
extension
|
ExtensionDeclaration |
addMessageSource(SourceDeclaration sourceDeclaration)
Adds a
SourceDeclaration |
ExtensionDeclaration |
addOperation(OperationDeclaration operation)
Adds a
OperationDeclaration |
ExtensionDeclaration |
addResource(String resourcePath)
Declares that this extension contains a resource which can be found
at the relative
resourcePath |
void |
addSubtype(org.mule.metadata.api.model.MetadataType baseType,
org.mule.metadata.api.model.MetadataType subType)
Registers the given
subType as an implementation of the baseType |
void |
addSubtypes(org.mule.metadata.api.model.MetadataType baseType,
Collection<org.mule.metadata.api.model.MetadataType> subTypes)
Registers the given
subTypes as implementations of the baseType |
ExtensionDeclaration |
addType(org.mule.metadata.api.model.ObjectType objectType)
Declares that this extension defined the given
objectType |
Category |
getCategory() |
List<ConfigurationDeclaration> |
getConfigurations()
Returns an immutable list with the
ConfigurationDeclaration instances
that have been declared so far. |
List<ConnectionProviderDeclaration> |
getConnectionProviders() |
Set<ErrorModel> |
getErrorModels() |
Set<ExternalLibraryModel> |
getExternalLibraryModels() |
Set<ImportedTypeModel> |
getImportedTypes() |
List<SourceDeclaration> |
getMessageSources() |
MuleVersion |
getMinMuleVersion() |
String |
getName()
Gets the name of the object
|
List<OperationDeclaration> |
getOperations() |
Set<String> |
getResources() |
Set<SubTypesModel> |
getSubTypes() |
Set<org.mule.metadata.api.model.ObjectType> |
getTypes() |
String |
getVendor() |
String |
getVersion() |
XmlDslModel |
getXmlDslModel() |
void |
setCategory(Category category) |
void |
setMinMuleVersion(MuleVersion minMuleVersion) |
void |
setName(String name) |
void |
setVendor(String vendor) |
void |
setXmlDslModel(XmlDslModel xmlDslModel) |
addModelProperty, 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<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 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 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 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.