public class PackageDependencyBuilderImpl extends Object implements PackageDependencyBuilder
A PackageDependencyBuilder
implementation.
Constructor and Description |
---|
PackageDependencyBuilderImpl(PackageNameBuilder packageNameBuilder,
PackageVersionRelationOperatorBuilder packageVersionRelationOperatorBuilder,
PackageVersionBuilder packageVersionBuilder)
Creates a builder.
|
Modifier and Type | Method and Description |
---|---|
String |
buildPackageDependencies(List<PackageDependency> dependencies,
Context context)
Builds a list of package dependencies.
|
String |
buildPackageDependency(PackageDependency dependency,
Context context)
Builds a package dependency.
|
public PackageDependencyBuilderImpl(PackageNameBuilder packageNameBuilder, PackageVersionRelationOperatorBuilder packageVersionRelationOperatorBuilder, PackageVersionBuilder packageVersionBuilder)
Creates a builder.
packageNameBuilder
- The builder for the package names.packageVersionRelationOperatorBuilder
- The builder for the relation operator.packageVersionBuilder
- The builder for the package version.IllegalArgumentException
- If any of the parameters are null
.public String buildPackageDependency(PackageDependency dependency, Context context) throws BuildException
PackageDependencyBuilder
Builds a package dependency.
buildPackageDependency
in interface PackageDependencyBuilder
dependency
- The package dependency.context
- The context.BuildException
- If an error occurs during the building.public String buildPackageDependencies(List<PackageDependency> dependencies, Context context) throws BuildException
PackageDependencyBuilder
Builds a list of package dependencies.
buildPackageDependencies
in interface PackageDependencyBuilder
dependencies
- The package dependencies.context
- The context.BuildException
- If an error occurs during the building.Copyright © 2015–2019. All rights reserved.