public static class ExternalLibraryModel.ExternalLibraryModelBuilder extends Object
ExternalLibraryModel.
Instances are to be created through the ExternalLibraryModel.builder() method.
Instances are not reusable.
| Modifier and Type | Method and Description |
|---|---|
ExternalLibraryModel |
build() |
ExternalLibraryModel.ExternalLibraryModelBuilder |
withDescription(String description)
Sets a description for the library
|
ExternalLibraryModel.ExternalLibraryModelBuilder |
withName(String name)
Sets the name of the library.
|
ExternalLibraryModel.ExternalLibraryModelBuilder |
withRegexpMatcher(String regexMatcher)
Sets a regexp which must match the name of the library's file.
|
ExternalLibraryModel.ExternalLibraryModelBuilder |
withRequiredClassName(String requiredClassName)
If provided, the library should contain a class of the given name
|
ExternalLibraryModel.ExternalLibraryModelBuilder |
withType(ExternalLibraryType type)
If provided, set the library's type of dependency
|
public ExternalLibraryModel.ExternalLibraryModelBuilder withName(String name)
name - the library namethis builderIllegalArgumentException - if name is nullpublic ExternalLibraryModel.ExternalLibraryModelBuilder withDescription(String description)
description - the library's descriptionthis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withRegexpMatcher(String regexMatcher)
regexMatcher - a regexp to match the library's filenamethis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withRequiredClassName(String requiredClassName)
requiredClassName - the name of the required classthis builderpublic ExternalLibraryModel.ExternalLibraryModelBuilder withType(ExternalLibraryType type)
type - the type of the librarythis builderpublic ExternalLibraryModel build()
ExternalLibraryModel instanceIllegalStateException - if withName(String) was not providedCopyright © 2017 MuleSoft, Inc.. All rights reserved.