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
AbstractComplexModel which also implements
HasConnectionProviderModels, HasSourceModels and
HasOperationModelsdescription, modelProperties| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends org.mule.runtime.api.meta.NamedObject> |
findModel(Collection<T> values,
String name)
Returns the first item in the
values collection which
matches the given name. |
Optional<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> |
getConnectionProviderModel(String name) |
List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> |
getConnectionProviders() |
Optional<org.mule.runtime.api.meta.model.operation.OperationModel> |
getOperationModel(String name) |
List<org.mule.runtime.api.meta.model.operation.OperationModel> |
getOperationModels() |
Optional<org.mule.runtime.api.meta.model.source.SourceModel> |
getSourceModel(String name) |
List<org.mule.runtime.api.meta.model.source.SourceModel> |
getSourceModels() |
protected <T extends org.mule.runtime.api.meta.DescribedObject> |
toList(Collection<T> collection) |
protected <T extends org.mule.runtime.api.meta.NamedObject> |
unique(Collection<T> values,
String identifier)
Returns an immutable copy of the
values collection, validating
that no items exist such that its name is repeated |
checkArgument, equals, getDisplayModel, getName, hashCode, toStringcopy, copy, getDescription, getModelProperties, getModelPropertypublic 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)
public List<org.mule.runtime.api.meta.model.operation.OperationModel> getOperationModels()
getOperationModels in interface org.mule.runtime.api.meta.model.operation.HasOperationModelspublic List<org.mule.runtime.api.meta.model.source.SourceModel> getSourceModels()
getSourceModels in interface org.mule.runtime.api.meta.model.source.HasSourceModelspublic Optional<org.mule.runtime.api.meta.model.source.SourceModel> getSourceModel(String name)
getSourceModel in interface org.mule.runtime.api.meta.model.source.HasSourceModelspublic Optional<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> getConnectionProviderModel(String name)
getConnectionProviderModel in interface org.mule.runtime.api.meta.model.connection.HasConnectionProviderModelspublic Optional<org.mule.runtime.api.meta.model.operation.OperationModel> getOperationModel(String name)
getOperationModel in interface org.mule.runtime.api.meta.model.operation.HasOperationModelspublic List<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel> getConnectionProviders()
getConnectionProviders in interface org.mule.runtime.api.meta.model.connection.HasConnectionProviderModelsprotected <T extends org.mule.runtime.api.meta.NamedObject> Optional<T> findModel(Collection<T> values, String name)
values collection which
matches the given name.T - the generic type of the values itemsvalues - a Collection of NamedObject itemsname - the matching criteriaOptional matching itemprotected <T extends org.mule.runtime.api.meta.DescribedObject> List<T> toList(Collection<T> collection)
protected <T extends org.mule.runtime.api.meta.NamedObject> List<T> unique(Collection<T> values, String identifier)
values collection, validating
that no items exist such that its name is repeatedT - the generic type of the values itemsvalues - the collection to copyidentifier - human friendly identifier of the values contentvaluesCopyright © 2017 MuleSoft, Inc.. All rights reserved.