@NoImplement
public interface ConnectivitySchemaGeneratorBuilder
ConnectivitySchemaGenerator instances| Modifier and Type | Method and Description |
|---|---|
ConnectivitySchemaGenerator |
build()
Creates and returns a new generator based on this configuration.
|
static ConnectivitySchemaGeneratorBuilder |
newInstance() |
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. |
static ConnectivitySchemaGeneratorBuilder newInstance()
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. build() method will fail if this method has not been
previously invoked
connectionTermsExtractor - a extraction functionthis builderConnectivitySchemaGeneratorBuilder 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. build() method will fail if this method has not been
previously invoked
parameterTermsExtractor - a extraction functionthis builderConnectivitySchemaGeneratorBuilder 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. build() method will fail if this method has not been
previously invoked
typeTermsExtractor - a extraction functionthis builderConnectivitySchemaGeneratorBuilder 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.predicate - A predicate Functionthis builderConnectivitySchemaGeneratorBuilder 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.predicate - A predicate Functionthis builderConnectivitySchemaGenerator build()
ConnectivitySchemaGeneratorIllegalStateException - if any of the mandatory methods haven't been previously invoked on this instanceCopyright © 2021. All rights reserved.