Class AbstractComplexModel
java.lang.Object
org.mule.runtime.extension.api.model.AbstractImmutableModel
org.mule.runtime.extension.api.model.AbstractNamedImmutableModel
org.mule.runtime.extension.api.model.AbstractComplexModel
- All Implemented Interfaces:
org.mule.runtime.api.meta.DescribedObject,org.mule.runtime.api.meta.model.connection.HasConnectionProviderModels,org.mule.runtime.api.meta.model.deprecated.DeprecableModel,org.mule.runtime.api.meta.model.display.HasDisplayModel,org.mule.runtime.api.meta.model.EnrichableModel,org.mule.runtime.api.meta.model.operation.HasOperationModels,org.mule.runtime.api.meta.model.source.HasSourceModels,org.mule.runtime.api.meta.NamedObject
- Direct Known Subclasses:
ImmutableConfigurationModel,ImmutableExtensionModel
public abstract class AbstractComplexModel
extends AbstractNamedImmutableModel
implements org.mule.runtime.api.meta.model.connection.HasConnectionProviderModels, org.mule.runtime.api.meta.model.source.HasSourceModels, org.mule.runtime.api.meta.model.operation.HasOperationModels, org.mule.runtime.api.meta.model.deprecated.DeprecableModel
A specialization of
AbstractComplexModel which also implements HasConnectionProviderModels,
HasSourceModels and HasOperationModels- Since:
- 1.0
-
Field Summary
Fields inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
description, modelProperties -
Constructor Summary
ConstructorsConstructorDescriptionAbstractComplexModel(String name, String description, List<org.mule.runtime.api.meta.model.operation.OperationModel> operationModels, List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> connectionProviders, List<org.mule.runtime.api.meta.model.source.SourceModel> sourceModels, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) AbstractComplexModel(String name, String description, List<org.mule.runtime.api.meta.model.operation.OperationModel> operationModels, List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> connectionProviders, List<org.mule.runtime.api.meta.model.source.SourceModel> sourceModels, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends org.mule.runtime.api.meta.NamedObject>
Optional<T>findModel(Collection<T> values, String name) Returns the first item in thevaluescollection which matches the givenname.Optional<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel>List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel>Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel>Optional<org.mule.runtime.api.meta.model.operation.OperationModel>getOperationModel(String name) List<org.mule.runtime.api.meta.model.operation.OperationModel>Optional<org.mule.runtime.api.meta.model.source.SourceModel>getSourceModel(String name) List<org.mule.runtime.api.meta.model.source.SourceModel>booleanprotected <T extends org.mule.runtime.api.meta.DescribedObject>
List<T>toList(Collection<T> collection) toString()protected <T extends org.mule.runtime.api.meta.NamedObject>
List<T>unique(Collection<T> values, String identifier) Returns an immutable copy of thevaluescollection, validating that no items exist such that its name is repeatedMethods inherited from class org.mule.runtime.extension.api.model.AbstractNamedImmutableModel
checkArgument, equals, getDisplayModel, getName, hashCodeMethods inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
copy, copy, getDescription, getModelProperties, getModelProperty
-
Constructor Details
-
AbstractComplexModel
public AbstractComplexModel(String name, String description, List<org.mule.runtime.api.meta.model.operation.OperationModel> operationModels, List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> connectionProviders, List<org.mule.runtime.api.meta.model.source.SourceModel> sourceModels, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) -
AbstractComplexModel
public AbstractComplexModel(String name, String description, List<org.mule.runtime.api.meta.model.operation.OperationModel> operationModels, List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> connectionProviders, List<org.mule.runtime.api.meta.model.source.SourceModel> sourceModels, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel)
-
-
Method Details
-
getOperationModels
- Specified by:
getOperationModelsin interfaceorg.mule.runtime.api.meta.model.operation.HasOperationModels
-
getSourceModels
- Specified by:
getSourceModelsin interfaceorg.mule.runtime.api.meta.model.source.HasSourceModels
-
getSourceModel
- Specified by:
getSourceModelin interfaceorg.mule.runtime.api.meta.model.source.HasSourceModels
-
getConnectionProviderModel
public Optional<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> getConnectionProviderModel(String name) - Specified by:
getConnectionProviderModelin interfaceorg.mule.runtime.api.meta.model.connection.HasConnectionProviderModels
-
getOperationModel
public Optional<org.mule.runtime.api.meta.model.operation.OperationModel> getOperationModel(String name) - Specified by:
getOperationModelin interfaceorg.mule.runtime.api.meta.model.operation.HasOperationModels
-
getConnectionProviders
public List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> getConnectionProviders()- Specified by:
getConnectionProvidersin interfaceorg.mule.runtime.api.meta.model.connection.HasConnectionProviderModels
-
findModel
protected <T extends org.mule.runtime.api.meta.NamedObject> Optional<T> findModel(Collection<T> values, String name) Returns the first item in thevaluescollection which matches the givenname.- Type Parameters:
T- the generic type of thevaluesitems- Parameters:
values- aCollectionofNamedObjectitemsname- the matching criteria- Returns:
- an
Optionalmatching item
-
toList
protected <T extends org.mule.runtime.api.meta.DescribedObject> List<T> toList(Collection<T> collection) -
unique
protected <T extends org.mule.runtime.api.meta.NamedObject> List<T> unique(Collection<T> values, String identifier) Returns an immutable copy of thevaluescollection, validating that no items exist such that its name is repeated- Type Parameters:
T- the generic type of thevaluesitems- Parameters:
values- the collection to copyidentifier- human friendly identifier of thevaluescontent- Returns:
- an immutable copy of the
values
-
getDeprecationModel
- Specified by:
getDeprecationModelin interfaceorg.mule.runtime.api.meta.model.deprecated.DeprecableModel
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceorg.mule.runtime.api.meta.model.deprecated.DeprecableModel
-
toString
- Overrides:
toStringin classAbstractNamedImmutableModel
-