Class ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
java.lang.Object
org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
- Enclosing class:
- ReadmeHtmlVelocityDelegate
A builder class for instantiation of the
ReadmeHtmlVelocityDelegate
.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
Private constructor for using the builder through theReadmeHtmlVelocityDelegate.builder()
method. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds up theReadmeHtmlVelocityDelegate
from the previously set parameters.withArtifactId
(String artifactId) Adds the artifactId to theReadmeHtmlVelocityDelegate
.withSiteUrl
(String siteUrl) Adds the siteUrl to theReadmeHtmlVelocityDelegate
.withVersion
(String version) Adds the version to theReadmeHtmlVelocityDelegate
.
-
Field Details
-
artifactId
The maven artifactId to use in theREADME.vm
template. -
version
The maven version to use in theREADME.vm
template. -
siteUrl
The site url to use in theREADME.vm
template.
-
-
Constructor Details
-
ReadmeHtmlVelocityDelegateBuilder
private ReadmeHtmlVelocityDelegateBuilder()Private constructor for using the builder through theReadmeHtmlVelocityDelegate.builder()
method.
-
-
Method Details
-
withArtifactId
public ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder withArtifactId(String artifactId) Adds the artifactId to theReadmeHtmlVelocityDelegate
.- Parameters:
artifactId
- theString
representing the maven artifactId.- Returns:
- the builder to continue building.
-
withVersion
Adds the version to theReadmeHtmlVelocityDelegate
.- Parameters:
version
- the maven version.- Returns:
- the builder to continue building.
-
withSiteUrl
Adds the siteUrl to theReadmeHtmlVelocityDelegate
.- Parameters:
siteUrl
- the site url to be used in theREADME.html
- Returns:
- the builder to continue building.
-
build
Builds up theReadmeHtmlVelocityDelegate
from the previously set parameters.- Returns:
- a new
ReadmeHtmlVelocityDelegate
.
-