public class DefaultConnectivitySchemaGeneratorBuilder extends Object implements ConnectivitySchemaGeneratorBuilder
ConnectivitySchemaGeneratorBuilder| Constructor and Description |
|---|
DefaultConnectivitySchemaGeneratorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ConnectivitySchemaGenerator |
build()
Creates and returns a new generator based on this configuration.
|
ConnectivitySchemaGeneratorBuilder |
setConnectionPredicate(Function<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,Boolean> predicate)
Specifies a
Function which evaluates if a ConnectionProviderModel should be added to the generated schema or
not. |
ConnectivitySchemaGeneratorBuilder |
setConnectionTermsExtractor(Function<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,Set<String>> connectionTermsExtractor)
Specifies the
Function which will be used to extract the semantic terms out of a ConnectionProviderModel
instance. |
ConnectivitySchemaGeneratorBuilder |
setParameterPredicate(BiFunction<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,org.mule.runtime.api.meta.model.parameter.ParameterModel,Boolean> predicate)
Specifies a
Function which evaluates if a ParameterModel should be added to the generated schema or not. |
ConnectivitySchemaGeneratorBuilder |
setParameterTermsExtractor(Function<org.mule.runtime.api.meta.model.parameter.ParameterModel,Set<String>> parameterTermsExtractor)
Specifies the
Function which will be used to extract the semantic terms out of a ParameterModel instance. |
ConnectivitySchemaGeneratorBuilder |
setTypeTermsExtractor(Function<org.mule.metadata.api.model.MetadataType,Set<String>> typeTermsExtractor)
Specifies the
Function which will be used to extract the semantic terms out of a MetadataType instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic DefaultConnectivitySchemaGeneratorBuilder()
public ConnectivitySchemaGeneratorBuilder setConnectionTermsExtractor(Function<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,Set<String>> connectionTermsExtractor)
Function which will be used to extract the semantic terms out of a ConnectionProviderModel
instance.
Providing a function through this method is mandatory. ConnectivitySchemaGeneratorBuilder.build() method will fail if this method has not been
previously invoked
setConnectionTermsExtractor in interface ConnectivitySchemaGeneratorBuilderconnectionTermsExtractor - a extraction functionthis builderpublic ConnectivitySchemaGeneratorBuilder setParameterTermsExtractor(Function<org.mule.runtime.api.meta.model.parameter.ParameterModel,Set<String>> parameterTermsExtractor)
Function which will be used to extract the semantic terms out of a ParameterModel instance.
Providing a function through this method is mandatory. ConnectivitySchemaGeneratorBuilder.build() method will fail if this method has not been
previously invoked
setParameterTermsExtractor in interface ConnectivitySchemaGeneratorBuilderparameterTermsExtractor - a extraction functionthis builderpublic ConnectivitySchemaGeneratorBuilder setTypeTermsExtractor(Function<org.mule.metadata.api.model.MetadataType,Set<String>> typeTermsExtractor)
Function which will be used to extract the semantic terms out of a MetadataType instance.
Providing a function through this method is mandatory. ConnectivitySchemaGeneratorBuilder.build() method will fail if this method has not been
previously invoked
setTypeTermsExtractor in interface ConnectivitySchemaGeneratorBuildertypeTermsExtractor - a extraction functionthis builderpublic ConnectivitySchemaGeneratorBuilder setConnectionPredicate(Function<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,Boolean> predicate)
Function which evaluates if a ConnectionProviderModel should be added to the generated schema or
not. Models for which this predicate yields a false value will be ignored.setConnectionPredicate in interface ConnectivitySchemaGeneratorBuilderpredicate - A predicate Functionthis builderpublic ConnectivitySchemaGeneratorBuilder setParameterPredicate(BiFunction<org.mule.runtime.api.meta.model.connection.ConnectionProviderModel,org.mule.runtime.api.meta.model.parameter.ParameterModel,Boolean> predicate)
Function which evaluates if a ParameterModel should be added to the generated schema or not.
Models for which this predicate yields a false value will be ignored.setParameterPredicate in interface ConnectivitySchemaGeneratorBuilderpredicate - A predicate Functionthis builderpublic ConnectivitySchemaGenerator build()
build in interface ConnectivitySchemaGeneratorBuilderConnectivitySchemaGeneratorCopyright © 2021. All rights reserved.