Class BundleDependency.Builder
java.lang.Object
org.mule.maven.pom.parser.api.model.BundleDependency.Builder
- Enclosing class:
- BundleDependency
Builder for creating a
BundleDependency-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTransitiveDependency(BundleDependency bundleDependency) build()setBundleDescriptor(BundleDescriptor descriptor) Sets the descriptor of the bundle.setBundleUri(URI bundleUri) setDescriptor(BundleDescriptor descriptor) This is the descriptor of the bundle.setScope(BundleScope scope) Sets the scope of the bundle.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setDescriptor
This is the descriptor of the bundle.- Parameters:
descriptor- the version of the bundle. Cannot be null or empty.- Returns:
- the builder
-
setScope
Sets the scope of the bundle.- Parameters:
scope- scope of the bundle. Non null- Returns:
- the builder
-
setBundleDescriptor
Sets the descriptor of the bundle.- Parameters:
descriptor- describes the bundle which is dependent on. Cannot be null- Returns:
- the builder
-
setBundleUri
-
addTransitiveDependency
-
build
- Returns:
- a
BundleDescriptorwith the previous provided parameters to the builder.
-