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 privateReadmeHtmlVelocityDelegateBuilder()Private constructor for using the builder through theReadmeHtmlVelocityDelegate.builder()method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadmeHtmlVelocityDelegatebuild()Builds up theReadmeHtmlVelocityDelegatefrom the previously set parameters.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderwithArtifactId(String artifactId)Adds the artifactId to theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderwithSiteUrl(String siteUrl)Adds the siteUrl to theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderwithVersion(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- theStringrepresenting 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 theReadmeHtmlVelocityDelegatefrom the previously set parameters.- Returns:
- a new
ReadmeHtmlVelocityDelegate.
-
-