Class ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
- java.lang.Object
-
- org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
-
- Enclosing class:
- ReadmeHtmlVelocityDelegate
public static class ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder extends Object
A builder class for instantiation of theReadmeHtmlVelocityDelegate
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ReadmeHtmlVelocityDelegateBuilder()
Private constructor for using the builder through theReadmeHtmlVelocityDelegate.builder()
method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadmeHtmlVelocityDelegate
build()
Builds up theReadmeHtmlVelocityDelegate
from the previously set parameters.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
withArtifactId(String artifactId)
Adds the artifactId to theReadmeHtmlVelocityDelegate
.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
withSiteUrl(String siteUrl)
Adds the siteUrl to theReadmeHtmlVelocityDelegate
.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder
withVersion(String version)
Adds the version to theReadmeHtmlVelocityDelegate
.
-
-
-
Constructor Detail
-
ReadmeHtmlVelocityDelegateBuilder
private ReadmeHtmlVelocityDelegateBuilder()
Private constructor for using the builder through theReadmeHtmlVelocityDelegate.builder()
method.
-
-
Method Detail
-
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
public ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder withVersion(String version)
Adds the version to theReadmeHtmlVelocityDelegate
.- Parameters:
version
- the maven version.- Returns:
- the builder to continue building.
-
withSiteUrl
public ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder withSiteUrl(String siteUrl)
Adds the siteUrl to theReadmeHtmlVelocityDelegate
.- Parameters:
siteUrl
- the site url to be used in theREADME.html
- Returns:
- the builder to continue building.
-
build
public ReadmeHtmlVelocityDelegate build()
Builds up theReadmeHtmlVelocityDelegate
from the previously set parameters.- Returns:
- a new
ReadmeHtmlVelocityDelegate
.
-
-